コード例 #1
0
 /**
  * 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();
     }
 }
コード例 #2
0
 /**
  * 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();
 }
コード例 #3
0
ファイル: LayoutManager.php プロジェクト: hummer2k/conlayout
 /**
  *
  * @return LayoutManager
  */
 public function load()
 {
     $this->layout->load();
     return $this;
 }