示例#1
0
 /**
  * 初始化
  *
  */
 public function init()
 {
     $this->moduleName = \Yaf_Dispatcher::getInstance()->getRequest()->getModuleName();
     $this->controllerName = \Yaf_Dispatcher::getInstance()->getRequest()->getControllerName();
     $this->actionName = \Yaf_Dispatcher::getInstance()->getRequest()->getActionName();
     $this->curr_url = \Yaf_Dispatcher::getInstance()->getRequest()->getRequestUri();
     $this->lang_arr = \Yaf_Registry::get('lang_arr');
     $this->config = \Yaf_Registry::get('configarr');
     $this->_view->assign("config", $this->config);
     $this->_view->assign("curcontroller", $this->controllerName);
     $this->_view->assign("curaction", $this->actionName);
     $this->_view->assign("curmodule", strtolower($this->moduleName));
     $this->_view->assign("langArr", $this->lang_arr);
     $this->_view->assign("currURL", @Tools_help::getCurrURL());
 }