Example #1
0
 /**
  * 
  * Uses $this->_view_object to render the layout into $this->_response.
  * 
  * @return void
  * 
  */
 protected function _renderLayout()
 {
     // assign the previous output
     $this->_view_object->assign($this->_layout_var, $this->_response->content);
     // set the template name from the layout value
     $tpl = $this->_layout . ".php";
     // fetch the layout
     try {
         $this->_response->content = $this->_view_object->fetch($tpl);
     } catch (Solar_View_Exception_TemplateNotFound $e) {
         throw $this->_exception('ERR_LAYOUT_NOT_FOUND', array('path' => $e->getInfo('path'), 'name' => $e->getInfo('name')));
     }
 }