Source for file controller.php
Documentation is available at controller.php
* @package Joomla.Administrator
* @subpackage com_templates
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* Templates manager master display controller.
* @package Joomla.Administrator
* @subpackage com_templates
* @var string The default view.
* Method to display a view.
* @param boolean $cachable If true, the view output will be cached
* @param boolean $urlparams An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
* @return TemplatesController This object to support chaining.
public function display($cachable =
false, $urlparams =
false)
$view =
$this->input->get('view', 'styles');
$layout =
$this->input->get('layout', 'default');
$id =
$this->input->getInt('id');
if ($document->getType() ==
'json')
// Push the model into the view (as default)
$view->setModel($model, true);
$view->document =
$document;
if ($view ==
'style' &&
$layout ==
'edit' &&
!$this->checkEditId('com_templates.edit.style', $id))
// Somehow the person just went to the form - we don't allow that.
Documentation generated on Tue, 19 Nov 2013 14:57:26 +0100 by phpDocumentor 1.4.3