_config = $config; return $this; } /** * Used to set which view class to use * * @param string $viewClass Name of the view class to use, eg. Zend_View * @returns CU_View_Factory provides fluid interface */ public function setViewClass($viewClass) { $this->_viewClass = $viewClass; return $this; } /** * Creates a view object * * @returns Zend_View_Interface the new view object */ public function createView() { $view = new $this->_viewClass($this->_config); $view->assign('PATH',dirname($_SERVER['SCRIPT_NAME'])); return $view; } } ?>