public function __construct() { $this->_request = Application::getRequest(); $this->_response = Application::getResponse(); $this->view = Application::getView(); $this->init(); }
/** * Gets view path for specified controllers action * * @param string $controllerName Controller name * @param string $actionName Action name * @return string View path */ public function getView($controllerName, $actionName) { $controllerName = str_replace('.', DIRECTORY_SEPARATOR, $controllerName); if ($path = $this->getRenderer()->getTemplatePath($controllerName . '/' . $actionName . '.tpl')) { return $path; } else { return parent::getView($controllerName, $actionName); } }