Example #1
0
 /**
  *
  * render
  * @see \lasa\view\Render::render()
  */
 public function display($layout = null, $values = null)
 {
     View::notifyObserver($this->getName(), $this);
     //layout指定の場合
     if ($layout) {
         $html = $this->getContent();
         View::section("@", $html);
         $view = Engine::currentEngine()->load($layout, $values);
         $view->display();
         return;
     }
     //レイアウト指定無しの場合
     $content = $this->getContent();
     if ($this->_layout && $this->_layout[0]) {
         View::section("@", $content);
         $view = Engine::currentEngine()->load($this->_layout[0], $this->_layout[1]);
         $view->display();
     } else {
         echo $content;
     }
 }