示例#1
0
 public function genLayout()
 {
     if (!$this->_layout) {
         $viewPath = \Path::instance()->evaluate(':' . $this->project()->name() . ".apps.layout.+{$this->name()}.@layout.php");
         $this->_layout = ControllerLayout::create($viewPath . '/layout.php');
         return $this->_layout->generate();
     }
     return false;
 }
示例#2
0
 public function genLayout()
 {
     if (!$this->_hasLayout) {
         $viewPath = \Path::instance()->evaluate(':' . $this->controller()->project()->name() . '.apps.view.+' . $this->controller()->name() . '.-' . $this->name());
         $this->_layout = ControllerLayout::create($viewPath . '/layout.php');
         $this->setHasLayout();
         return $this->_layout->generate();
     }
     return false;
 }