JApplication/dispatch: Difference between revisions
From Joomla! Documentation
m clean up |
m preparing for archive only |
||
| Line 43: | Line 43: | ||
===Examples=== | ===Examples=== | ||
=== Code Examples === | |||
<dpl> | <dpl> | ||
noresultsheader=\n | noresultsheader=\n | ||
category=dispatch | category=dispatch | ||
category=JApplication | category=JApplication | ||
namespace=CodeExample | |||
category=MethodExample | category=MethodExample | ||
include=* | include=* | ||
Latest revision as of 00:16, 25 March 2017
Description
Dispatch the applicaiton.
<! removed transcluded page call, red link never existed >
Syntax
dispatch($component)
| Parameter Name | Default Value | Description |
|---|---|---|
| $component |
Defined in
libraries/joomla/application/application.php
Importing
jimport( 'joomla.application.application' );
Source Body
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');
}
<! removed transcluded page call, red link never existed >
Examples
Code Examples