예제 #1
0
파일: layout.php 프로젝트: bosoy83/progtest
 public function render()
 {
     if (!$this->render_layout) {
         return parent::render();
     }
     $partials = $this->_partials;
     $partials[Kostache_Layout::CONTENT_PARTIAL] = $this->_template;
     $template = $this->_load($this->_layout);
     return $this->_stash($template, $this, $partials)->render();
 }
예제 #2
0
 /**
  * Renders the body template into the layout
  */
 public function render($template = null, $view = null, $partials = null)
 {
     // Override the template location to match kohana's conventions
     if (!$this->_template) {
         $foo = explode('_', get_class($this));
         array_shift($foo);
         $this->_template = strtolower(implode('/', $foo));
     }
     $this->_partials += array('body' => $this->_template);
     // Make the layout view the child class's template
     $this->_template = $this->_layout;
     return parent::render($template, $view, $partials);
 }
예제 #3
0
 public function render()
 {
     $this->_parse_data();
     return parent::render();
 }