public function dispatch($component = null)
	{
		$document = JFactory::getDocument();

		$contents = JComponentHelper::renderComponent($component);
		$document->setBuffer($contents, 'component');

		// Trigger the onAfterDispatch event.
		JPluginHelper::importPlugin('system');
		$this->triggerEvent('onAfterDispatch');
	}
public function dispatch($component = null)
	{
		$document = JFactory::getDocument();

		$contents = JComponentHelper::renderComponent($component);
		$document->setBuffer($contents, 'component');

		// Trigger the onAfterDispatch event.
		JPluginHelper::importPlugin('system');
		$this->triggerEvent('onAfterDispatch');
	}
public function dispatch ( $ component = null ) { $ document = JFactory :: getDocument ( ) ; $ contents = JComponentHelper :: renderComponent ( $ component ) ; $ document -> setBuffer ( $ contents , 'component' ) ; // Trigger the onAfterDispatch event. JPluginHelper :: importPlugin ( 'system' ) ; $ this -> triggerEvent ( 'onAfterDispatch' ) ; }
Dispatch the application.

Dispatching is the process of pulling the option from the request object and
mapping them to a component. If the component does not exist, it handles
determining a default component to dispatch.

@param   string  $component  The component to dispatch.

@return  void

@since   11.1
@deprecated  4.0
Dispatch the application .