コード例 #1
0
 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);
 }
コード例 #2
0
 private function _getUrlToModule($moduleName)
 {
     $url = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $_SERVER['SCRIPT_NAME'] . '?' . $this->_conf->get('module_url_variable_name') . '=' . $this->_appMap->getModuleUrlName($moduleName);
     return $url;
 }