/** * load layout if result ist not terminated * * @param MvcEvent $e */ public function loadLayout(MvcEvent $e) { /* @var $result ModelInterface */ $result = $e->getViewModel(); if (!$result->terminate()) { $this->layout->load(); } }
/** * set layout root and load layout * * @param MvcEvent $e */ public function loadLayout(MvcEvent $e) { /* @var $root ModelInterface */ $root = $e->getViewModel(); if ($root->terminate()) { return; } $this->layout->setRoot($root); $this->layout->load(); }
/** * * @return LayoutManager */ public function load() { $this->layout->load(); return $this; }