public function __construct(Get $get, Post $post, Conf $conf) { $this->_get = $get; $this->_post = $post; $this->_conf = $conf; $this->_handleDb(); $this->_appMap = new AppMap($this->_conf->getMap()); // creates smarty handle for view $this->_view = new ViewHandlerSmarty($this->_conf); $this->_view->assign('conf', $this->_conf); //$this->_view->display('test.tpl'); }
public function __construct(Get $get, Post $post, Conf $conf, ViewHandler $view, AppMap $appMap) { $this->_get = $get; $this->_post = $post; $this->_conf = $conf; $this->_view = $view; $this->_appMap = $appMap; $this->_session = new Zend_Session_Namespace('Main'); $this->_moduleData['module_name'] = get_class($this); $this->_moduleData['module_url_name'] = $this->_appMap->getModuleUrlName(get_class($this)); $this->_view->assign('module_data', $this->_moduleData); $this->_view->assign('appMap', $this->_appMap); }