API15:JApplication/dispatch
From Joomla! Documentation
Description
Dispatch the applicaiton.
Template:Description:JApplication/dispatch
Syntax
dispatch($component)
| Parameter Name | Default Value | Description |
|---|---|---|
| $component |
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
public function dispatch($component)
{
$document = &JFactory::getDocument();
$document->setTitle($this->getCfg('sitename'). ' - ' .JText::_('Administration'));
$document->setDescription($this->getCfg('MetaDesc'));
$contents = JComponentHelper::renderComponent($component);
$document->setBuffer($contents, 'component');
// Trigger the onAfterDispatch event.
JPluginHelper::importPlugin('system');
$this->triggerEvent('onAfterDispatch');
}
[Edit See Also] Template:SeeAlso:JApplication/dispatch
Examples
<CodeExamplesForm />