Exception: FLEA_Exception_ExpectedFile
Message: Required file "/www/web/default/gen2/shundehupogongye/data/language/zh/ui.php" is missing.
Filename: /www/web/default/gen2/shundehupogongye/libs/FLEA/FLEA/Language.php [127]
#8 FLEA_Language::load('ui', '', )
ARGS:
Array
(
[0] => ui
[1] =>
[2] =>
)
SOURCE CODE:
117 |
* @return boolean
|
118 |
*/
|
119 |
function load_language($dictname, $language = '', $noException = false)
|
120 |
{
|
121 |
static $instance = null;
|
122 |
if (!isset($instance['obj'])) {
|
123 |
$instance = array();
|
124 |
$obj =& FLEA::getSingleton('FLEA_Language');
|
125 |
$instance = array('obj' => & $obj);
|
126 |
}
|
127 |
return $instance['obj']->load($dictname, $language, $noException);
|
128 |
}
|
129 |
|
130 |
/**
|
131 |
* FLEA_Language 提供了语言转换功能
|
132 |
*
|
133 |
* @package Core
|
134 |
* @author 起源科技 (www.qeeyuan.com)
|
135 |
* @version 1.0
|
136 |
*/
|
137 |
class FLEA_Language
|
Filename: /www/web/default/gen2/shundehupogongye/apps/front/Controller/Base.php [33]
#7 load_language('ui')
ARGS:
Array
(
[0] => ui
)
SOURCE CODE:
23 |
*/
|
24 |
function Controller_Base() {
|
25 |
/**
|
26 |
* 加载系统配置信息
|
27 |
*/
|
28 |
$this->_loadOptions();
|
29 |
if ($_GET['lang']) {
|
30 |
FLEA::setAppInf('defaultLanguage', trim($_GET['lang']));
|
31 |
|
32 |
}
|
33 |
load_language('ui');
|
34 |
|
35 |
/**
|
36 |
* 获取页码
|
37 |
*/
|
38 |
$this->currentPage = isset($_GET['page']) ? (int)$_GET['page'] : 0;
|
39 |
$this->sortby = 'sort_id ASC, created DESC';
|
40 |
|
41 |
//栏目模型
|
42 |
$this->colModel = FLEA::getSingleton('Model_Columns');
|
43 |
}
|
Filename: /www/web/default/gen2/shundehupogongye/apps/front/Controller/Home.php [26]
#6 Controller_Base::Controller_Base()
ARGS:
Array
(
)
SOURCE CODE:
16 |
/**
|
17 |
*
|
18 |
* @param
|
19 |
* @return
|
20 |
**/
|
21 |
|
22 |
class Controller_Home extends Controller_Base
|
23 |
{
|
24 |
function Controller_Home()
|
25 |
{
|
26 |
parent::Controller_Base();
|
27 |
|
28 |
}
|
29 |
|
30 |
function actionIndex()
|
31 |
{
|
32 |
|
33 |
$data['is_home'] = true;
|
34 |
$this->_executeView('index.html',$data);
|
35 |
}
|
36 |
|
Filename: /www/web/default/gen2/shundehupogongye/libs/FLEA/FLEA/Dispatcher/Simple.php [106]
#5 Controller_Home::Controller_Home('home')
ARGS:
Array
(
[0] => home
)
SOURCE CODE:
96 |
|
97 |
$controller = null;
|
98 |
$controllerClassFilename = null;
|
99 |
do {
|
100 |
// 载入控制对应的类定义
|
101 |
if (!$this->_loadController($controllerClass)) { break; }
|
102 |
|
103 |
// 构造控制器对象
|
104 |
FLEA::setAppInf('FLEA.internal.currentControllerName', $controllerName);
|
105 |
FLEA::setAppInf('FLEA.internal.currentActionName', $actionName);
|
106 |
$controller =& new $controllerClass($controllerName);
|
107 |
if (!method_exists($controller, $actionMethod)) { break; }
|
108 |
if (method_exists($controller, '__setController')) {
|
109 |
$controller->__setController($controllerName, $actionName);
|
110 |
}
|
111 |
if (method_exists($controller, '__setDispatcher')) {
|
112 |
$controller->__setDispatcher($this);
|
113 |
}
|
114 |
|
115 |
// 调用 _beforeExecute() 方法
|
116 |
if (method_exists($controller, '_beforeExecute')) {
|
Filename: /www/web/default/gen2/shundehupogongye/libs/FLEA/FLEA/Dispatcher/Simple.php [77]
#4 FLEA_Dispatcher_Simple::_executeAction('home', 'index', 'Controller_Home')
ARGS:
Array
(
[0] => home
[1] => index
[2] => Controller_Home
)
SOURCE CODE:
67 |
|
68 |
/**
|
69 |
* 从请求中分析 Controller、Action 和 Package 名字,然后执行指定的 Action 方法
|
70 |
*
|
71 |
* @return mixed
|
72 |
*/
|
73 |
function dispatching()
|
74 |
{
|
75 |
$controllerName = $this->getControllerName();
|
76 |
$actionName = $this->getActionName();
|
77 |
return $this->_executeAction($controllerName, $actionName, $this->getControllerClass($controllerName));
|
78 |
}
|
79 |
|
80 |
/**
|
81 |
* 执行指定的 Action 方法
|
82 |
*
|
83 |
* @param string $controllerName
|
84 |
* @param string $actionName
|
85 |
* @param string $controllerClass
|
86 |
*
|
87 |
* @return mixed
|
Filename: /www/web/default/gen2/shundehupogongye/libs/FLEA/FLEA.php [816]
#3 FLEA_Dispatcher_Simple::dispatching()
ARGS:
Array
(
)
SOURCE CODE:
806 |
require_once($MVCPackageFilename);
|
807 |
}
|
808 |
FLEA::init();
|
809 |
|
810 |
// 载入调度器并转发请求到控制器
|
811 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
812 |
FLEA::loadClass($dispatcherClass);
|
813 |
|
814 |
$dispatcher =& new $dispatcherClass($_GET);
|
815 |
FLEA::register($dispatcher, $dispatcherClass);
|
816 |
$dispatcher->dispatching();
|
817 |
}
|
818 |
|
819 |
/**
|
820 |
* 准备运行环境
|
821 |
*
|
822 |
* @param boolean $loadMVC
|
823 |
*/
|
824 |
function init($loadMVC = false)
|
825 |
{
|
826 |
static $firstTime = true;
|
Filename: /www/web/default/gen2/shundehupogongye/apps/application.php [80]
#2 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
70 |
return new application($app);
|
71 |
|
72 |
}
|
73 |
|
74 |
/**
|
75 |
* 运行框架
|
76 |
*
|
77 |
*/
|
78 |
function run()
|
79 |
{
|
80 |
FLEA::runMVC();
|
81 |
|
82 |
|
83 |
}
|
84 |
}
|
85 |
|
86 |
/**
|
87 |
* 超时操作句柄
|
88 |
*
|
89 |
* @access public
|
90 |
* @return void
|
Filename: /www/web/default/gen2/shundehupogongye/index.php [27]
#1 application::run()
ARGS:
Array
(
)
SOURCE CODE:
17 |
/**
|
18 |
* 载入应用入口
|
19 |
*/
|
20 |
require_once './apps/application.php';
|
21 |
/**
|
22 |
* 运行应用
|
23 |
*/
|
24 |
|
25 |
|
26 |
|
27 |
application::factory('front')->run();
|
28 |
|
29 |
|