API16

JApplication/dispatch

< API16:JApplication

The "API16" namespace is an archived namespace. This page contains information for a Joomla! version which is no longer supported. It exists only as a historical reference, it will not be improved and its content may be incomplete and/or contain broken links.

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

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');
}


<! removed transcluded page call, red link never existed >

Examples

Code Examples


Advertisement