Example #1
0
 /**
  * Renders the appropriate view
  * based on the defined controller
  * and action.
  * It users the controller
  * name as a folder name and the action
  * as a reference to the view file name.
  */
 protected function _render()
 {
     $viewFile = VIEWS_PATH . DS . $this->_controller . DS . $this->_action . '.view.php';
     $this->_template->setData($this->_data);
     $this->_template->setLang($this->lang->getDictionary());
     $this->_template->setView($viewFile);
     $this->_template->setRegistry($this->_registry);
     $this->_template->drawTemplate();
 }