View Single Post
Old 05-15-2009, 12:47 AM   #1 (permalink)
Enfernikus
The Addict
 
Enfernikus's Avatar
 
Join Date: Jun 2008
Posts: 335
Thanks: 2
Enfernikus is on a distinguished road
Default 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?
Enfernikus is offline  
Reply With Quote