2005-06-19 23:30:36 +00:00
|
|
|
<?php
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
// + $Id$
|
|
|
|
// +------------------------------------------------------------------+ //
|
2005-07-04 02:07:21 +00:00
|
|
|
// + Cake PHP : Rapid Development Framework <http://www.cakephp.org/> + //
|
2005-07-04 02:59:39 +00:00
|
|
|
// + Copyright: (c) 2005, CakePHP Authors/Developers + //
|
2005-06-19 23:30:36 +00:00
|
|
|
// + Author(s): Michal Tatarynowicz aka Pies <tatarynowicz@gmail.com> + //
|
|
|
|
// + Larry E. Masters aka PhpNut <nut@phpnut.com> + //
|
|
|
|
// + Kamil Dzielinski aka Brego <brego.dk@gmail.com> + //
|
|
|
|
// +------------------------------------------------------------------+ //
|
|
|
|
// + Licensed under The MIT License + //
|
|
|
|
// + Redistributions of files must retain the above copyright notice. + //
|
|
|
|
// + See: http://www.opensource.org/licenses/mit-license.php + //
|
|
|
|
//////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Purpose: Renderer
|
|
|
|
* Templating for Controller class.
|
|
|
|
*
|
|
|
|
* @filesource
|
2005-07-04 02:07:21 +00:00
|
|
|
* @author CakePHP Authors/Developers
|
2005-07-04 02:59:39 +00:00
|
|
|
* @copyright Copyright (c) 2005, CakePHP Authors/Developers
|
2005-07-04 01:07:14 +00:00
|
|
|
* @link https://trac.cakephp.org/wiki/Authors Authors/Developers
|
2005-06-19 23:30:36 +00:00
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.libs
|
2005-07-04 02:07:21 +00:00
|
|
|
* @since CakePHP v 0.2.9
|
2005-06-19 23:30:36 +00:00
|
|
|
* @version $Revision$
|
|
|
|
* @modifiedby $LastChangedBy$
|
|
|
|
* @lastmodified $Date$
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.php The MIT License
|
|
|
|
*/
|
|
|
|
|
|
|
|
uses('object');
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Templating for Controller class. Takes care of rendering views.
|
|
|
|
*
|
|
|
|
* @package cake
|
|
|
|
* @subpackage cake.libs
|
2005-07-04 02:07:21 +00:00
|
|
|
* @since CakePHP v 0.2.9
|
2005-06-19 23:30:36 +00:00
|
|
|
*/
|
|
|
|
class Template extends Object
|
|
|
|
{
|
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
|
|
|
* Enter description here...
|
|
|
|
*
|
|
|
|
* @var unknown_type
|
|
|
|
* @access public
|
|
|
|
*/
|
|
|
|
var $base = null;
|
2005-06-19 23:30:36 +00:00
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
|
|
|
* Enter description here...
|
|
|
|
*
|
|
|
|
* @var string
|
|
|
|
* @access public
|
|
|
|
*/
|
|
|
|
var $layout = 'default';
|
2005-06-19 23:30:36 +00:00
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
|
|
|
* Enter description here...
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
* @access public
|
|
|
|
*/
|
|
|
|
var $autoRender = true;
|
2005-06-19 23:30:36 +00:00
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
|
|
|
* Enter description here...
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
* @access public
|
|
|
|
*/
|
|
|
|
var $autoLayout = true;
|
2005-06-19 23:30:36 +00:00
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
|
|
|
* Variables for the view
|
|
|
|
*
|
|
|
|
* @var array
|
|
|
|
* @access private
|
|
|
|
*/
|
|
|
|
var $_viewVars = array();
|
2005-06-19 23:30:36 +00:00
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
|
|
|
* Enter description here...
|
|
|
|
*
|
|
|
|
* @var boolean
|
|
|
|
* @access private
|
|
|
|
*/
|
|
|
|
var $pageTitle = false;
|
2005-06-19 23:30:36 +00:00
|
|
|
|
2005-07-10 05:08:19 +00:00
|
|
|
/**
|
|
|
|
* Set the title element of the page.
|
|
|
|
*
|
|
|
|
* @param string $pageTitle Text for the title
|
|
|
|
*/
|
|
|
|
function setTitle($pageTitle)
|
|
|
|
{
|
|
|
|
$this->pageTitle = $pageTitle;
|
|
|
|
}
|
2005-06-19 23:30:36 +00:00
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2005-06-22 23:16:26 +00:00
|
|
|
?>
|