english/administrator/components/com_config/controller.php
/**
	 * Method to display the view.
	 *
	 * @param	boolean			If true, the view output will be cached
	 * @param	array			An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
	 *
	 * @return	JController		This object to support chaining.
	 * @since	1.5
	 */
Method to display the view.
@param       boolean                 If true, the view output will be cached
@param       array                   An array of safe url parameters and their variable types, for valid values see  JFilterInput::clean().

@return      JController             This object to support chaining.
Method to display the view . @param boolean If true the view output will be cached @param array An array of safe url parameters and their variable types for valid values see JFilterInput :: clean () . @return JController This object to support chaining .
public function display($cachable = false, $urlparams = false)
	{
		$document	= JFactory::getDocument();
		$vName		= JRequest::getCmd('view', 'application');
		$vFormat	= $document->getType();
		$lName		= JRequest::getCmd('layout', 'default');
		if ($view = $this->getView($vName, $vFormat)) {
			if ($vName != 'close') {
				$model = $this->getModel($vName);
				if (!JFactory::getUser()->authorise('core.admin', $model->getState('component.option'))) {
					return JError::raiseWarning(404, JText::_('JERROR_ALERTNOAUTHOR'));
				}
				$view->setModel($model, true);
			}
			$view->setLayout($lName);
			$view->assignRef('document', $document);
			$view->display();
		}
	}
public function display ( $ cachable = false , $ urlparams = false ) { $ document = JFactory :: getDocument ( ) ; $ vName = JRequest :: getCmd ( 'view' , 'application' ) ; $ vFormat = $ document -> getType ( ) ; $ lName = JRequest :: getCmd ( 'layout' , 'default' ) ; if ( $ view = $ this -> getView ( $ vName , $ vFormat ) ) { if ( $ vName != 'close' ) { $ model = $ this -> getModel ( $ vName ) ; if ( ! JFactory :: getUser ( ) -> authorise ( 'core.admin' , $ model -> getState ( 'component.option' ) ) ) { return JError :: raiseWarning ( 404 , JText :: _ ( 'JERROR_ALERTNOAUTHOR' ) ) ; } $ view -> setModel ( $ model , true ) ; } $ view -> setLayout ( $ lName ) ; $ view -> assignRef ( 'document' , $ document ) ; $ view -> display ( ) ; } }
Method to display the view.
Method to display the view .
// Get the document object. // Set the default view name and format from the Request. // Get and render the view. // Get the model for the view. // Access check. // Push the model into the view (as default). // Push document object into the view.