コード例 #1
0
ファイル: Control.class.php プロジェクト: huangwei2wei/kfxt
 /**
  * 创建view层
  */
 protected function _createView()
 {
     $this->_loadCore('View');
     $this->_view = View::getInstance();
     $rbac = $this->_getGlobalData('Util_Rbac', 'object');
     $this->_view->assign('rbac', $rbac);
     $this->_view->assign('noData', '暂无数据');
 }
コード例 #2
0
ファイル: Control.class.php プロジェクト: huangwei2wei/kfxt
 /**
  * 创建view层
  */
 protected function _createView()
 {
     if (!is_object($this->_view)) {
         $this->_loadCore('View');
         $this->_view = View::getInstance();
         $rbac = $this->_getGlobalData('Util_Rbac', 'object');
         $this->_view->assign('_GET', $_GET);
         $this->_view->assign('_REQUEST', $_REQUEST);
         $this->_view->assign('_SERVER', $_SERVER);
         if ($_POST) {
             $this->_view->assign('_POST', $_POST);
         }
         $this->_view->assign('rbac', $rbac);
         $this->_view->assign('noData', '暂无数据');
     }
 }