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; }
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; }
public function headerLayout() { try { $layout = new ControllerLayout(); $layout->headerLayout(); } catch (Exception $ex) { echo "Erro: {$ex}"; } }
public function footer() { try { $layout = new ControllerLayout(); $layout->footer(); } catch (Exception $ex) { echo $ex; } }
public function sideLayout() { $layout = new ControllerLayout(); $layout->sideLayout(); }