05-15-2009, 12:47 AM
|
#1 (permalink)
|
|
The Addict
Join Date: Jun 2008
Posts: 335
Thanks: 2
|
Input for AJAX type function
Current I employ a static class to allow for easier ajax computability here is an example
PHP Code:
Ajax::Preform( array('view', 'show', 'index'), 1 );
or
PHP Code:
if( Ajax::Is() ) { //do code here }
In the first example, the array follows this
array( Object, Method, Additional Input, Additional Input, etc, etc, etc );
My question is, is the first method well done? or is it better to leave it like the second example?
|
|
|
|