Example #1
0
 /**
  * Gets the action view HTML.
  * @param bool $print
  * @return bool|string
  */
 public function getActionView($print = false)
 {
     $this->_returnActionView = true;
     // Load an action view to the View object
     $this->_viewAction->load(Router::$controller_view, Router::$method);
     // Parse action view
     $action_content = $this->_viewAction->parse($this->view, new View_Helper());
     // Set parsed action view
     $this->view->setActionContent($action_content);
     if ($print) {
         print $this->view->getActionContent();
         return true;
     }
     return $this->view->getActionContent();
 }