PHPdoc updated
This commit is contained in:
@ -56,7 +56,9 @@ abstract class Layout
|
||||
abstract protected function execute();
|
||||
|
||||
/**
|
||||
* Execute Action, insert action's result html into layout template and return Layout html
|
||||
* @param Action $action
|
||||
* @return string
|
||||
*/
|
||||
public function fetch($action)
|
||||
{
|
||||
@ -64,7 +66,11 @@ abstract class Layout
|
||||
$this->execute();
|
||||
return $this->view->fetch($this->getTemplate());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Return content of template
|
||||
* @return string
|
||||
*/
|
||||
protected function getTemplate()
|
||||
{
|
||||
$template = ($this->template) ? $this->template : substr(get_class($this), 0, -6/*strlen('Layout')*/);
|
||||
|
Reference in New Issue
Block a user