function FrontendApp()
 {
     Lang::load(lang_file('common'));
     Lang::load(lang_file(APP));
     parent::__construct();
     // 判断商城是否关闭
     if (!Conf::get('site_status')) {
         $this->show_warning(Conf::get('closed_reason'));
         exit;
     }
     # 在运行action之前,无法访问到visitor对象
 }
Example #2
0
 function BackendApp()
 {
     Lang::load(lang_file('admin/common'));
     Lang::load(lang_file('admin/' . APP));
     parent::__construct();
     //引入搜索引擎 xunsearch_sdk
     include_once ROOT_PATH . '/includes/ext/xunsearch_sdk/lib/XS.php';
     //引用PHPExcel
     set_include_path('.' . PATH_SEPARATOR . ROOT_PATH . '/includes/ext/PHPExcel' . PATH_SEPARATOR . get_include_path());
     include_once 'PHPExcel.php';
     include_once 'PHPExcel/Writer/Excel5.php';
 }
 function BackendApp()
 {
     Lang::load(lang_file('admin/common'));
     Lang::load(lang_file('admin/' . APP));
     parent::__construct();
 }