44,7 → 44,7 |
* |
* @see View::__construct() |
*/ |
protected function __construct($viewClass = 'View', $template = null) |
protected function __construct ($viewClass = 'View', $template = null) |
{ |
$this->_view = new $viewClass($template); |
|
73,29 → 73,33 |
} |
|
/** |
* Assigns a value to a template variable (after this, |
* <var>$value</var> is available through |
* <code>$this-><var>$name</var></code> in the view's template). |
* <code>Controller</code>s should call this method instead of |
* {@link View::assign()}. |
* |
* @param string $name |
* Variable name |
* @param mixed $value |
* Variable value |
* @param bool $encodeHTML |
* If <code>true</code>, replace all potentially conflicting |
* characters in <var>$value</var> with their HTML entity |
* references. The default is <code>false</code>. |
* @return mixed The assigned value (after possible HTML encoding) |
* @see View::encodeHTML() |
* (non-PHPDoc) |
* @see View::assign() |
*/ |
protected function assign($name, $value, $encodeHTML = false) |
protected function assign ($name, $value, $encodeHTML = false) |
{ |
return $this->_view->assign($name, $value, $encodeHTML); |
} |
|
/** |
* (non-PHPDoc) |
* @see View::addStylesheet() |
*/ |
protected function addStylesheet ($uri, $key = null) |
{ |
return $this->_view->addStylesheet($uri, $key); |
} |
|
/** |
* (non-PHPDoc) |
* @see View::addSscript() |
*/ |
protected function addScript ($uri, $key = null) |
{ |
return $this->_view->addScript ($uri, $key); |
} |
|
/** |
* Renders the {@link View} associated with this controller |
* by including the <code>View</code>'s template. |
* <code>Controller</code>s should call this method instead of |
107,7 → 111,7 |
* <code>View</code>'s <code>$template</code> property) |
* will be used. |
*/ |
public function render($template = null, $content = null) |
public function render ($template = null, $content = null) |
{ |
$this->_view->render($template, $content); |
} |