PPLICATION
*
* NOTE:
*/
$ mainframe= amp; JFactory :: getApplication ( site );
/**
* INITIALISE THE APPLICATION
*
* NOTE:
*/
//set the language
$ mainframe- gt; initialise (); :: importPlugin ( system );
//trigger the onAfterInitialise events? $ _PROFILER- Gt; mark ( afterInitialise ): null;
$ mainframe- gt; triggerEvent ( onAfterInitialise );
/**
* ROUTE THE APPLICATION
*
* NOTE:
*/
$ mainframe- gt; route ();
//authorization
$ Itemid=JRequest :: getInt ( Itemid );
$ mainframe- gt; authorize ($ Itemid);
//trigger the onAfterRoute events? $ _PROFILER- Gt; mark ( afterRoute ): null;
$ mainframe- gt; triggerEvent ( onAfterRoute );
/**
* DISPATCH THE APPLICATION
*
* NOTE:
*/
$ option=JRequest :: getCmd ( option );
$ mainframe- gt; dispatch ($ option);
//trigger the onAfterDispatch events? $ _PROFILER- Gt; mark ( afterDispatch ): null;
$ mainframe- gt; triggerEvent ( onAfterDispatch );
/**
* RENDER THE APPLICATION
*
* NOTE:
*/
$ mainframe- gt; render ();
//trigger the onAfterRender events? $ _PROFILER- Gt; mark ( afterRender ): null;
$ mainframe- gt; triggerEvent ( onAfterRender );
/**
* RETURN THE RESPONSE
*/JResponse :: toString ($ mainframe- gt; getCfg ( gzip ));