Added View methods append & preprend, #16
git-svn-id: svn+ssh://code.netmonsters.ru/svn/majestic/branches/evo@135 4cb57b5f-5bbd-dd11-951b-001d605cbbc5
This commit is contained in:
@ -33,6 +33,26 @@ abstract class Layout
|
||||
$this->view->assign($name, $action->fetch());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param Action $action
|
||||
*/
|
||||
protected function append($name, $action)
|
||||
{
|
||||
$this->view->append($name, $action->fetch());
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @param string $name
|
||||
* @param Action $action
|
||||
*/
|
||||
protected function prepend($name, $action)
|
||||
{
|
||||
$this->view->prepend($name, $action->fetch());
|
||||
}
|
||||
|
||||
abstract protected function execute();
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user