Exception: FLEA_Exception_ExpectedClass
Message: 文件 "FLEA\Exception\CacheDisabled.php" 中没有定义需要的类 "FLEA_Exception_CacheDisabled".
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA.php [621]
#15 FLEA::loadClass('FLEA_Exception_CacheDisabled')
ARGS:
Array
(
[0] => FLEA_Exception_CacheDisabled
)
SOURCE CODE:
611 |
} else {
|
612 |
$cacheFile = $cacheDir . DS . md5 ( $cacheId ) . '.php';
|
613 |
}
|
614 |
|
615 |
$data = serialize ( $data );
|
616 |
$prefix = '<?php die(); ?> ';
|
617 |
$hash = sprintf ( '% 32d', crc32 ( $data ) );
|
618 |
$data = $prefix . $hash . $data;
|
619 |
|
620 |
if (! safe_file_put_contents ( $cacheFile, $data )) {
|
621 |
FLEA::loadClass ( 'FLEA_Exception_CacheDisabled' );
|
622 |
__THROW ( new FLEA_Exception_CacheDisabled ( $cacheDir ) );
|
623 |
return false;
|
624 |
} else {
|
625 |
return true;
|
626 |
}
|
627 |
}
|
628 |
|
629 |
/**
|
630 |
* 删除指定的缓存内容
|
631 |
*
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA\Db\TableDataGateway.php [2006]
#14 FLEA::writeCache('mysql://baoshengshi:63RjM0m ...', array(8))
ARGS:
Array
(
[0] => mysql://baoshengshi:63RjM0mNvZ@127.0.0.1_mye_/baoshengshi///mye_info_cate
[1] => Array
(
[ID] => Array
(
[name] => id
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => R
[notNull] => 1
[primaryKey] => 1
[autoIncrement] => 1
[binary] =>
[unsigned] =>
[hasDefault] =>
[description] =>
)
[NAME] => Array
(
[name] => name
[scale] =>
[type] => varchar
[maxLength] => 60
[simpleType] => C
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
[description] =>
)
[NUMBER] => Array
(
[name] => number
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 0
[description] =>
)
[P_ID] => Array
(
[name] => p_id
[scale] =>
[type] => varchar
[maxLength] => 11
[simpleType] => C
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => x
[description] =>
)
[PHOTO] => Array
(
[name] => photo
[scale] =>
[type] => varchar
[maxLength] => 111
[simpleType] => C
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
[description] =>
)
[OTHER] => Array
(
[name] => other
[scale] =>
[type] => longtext
[maxLength] => -1
[simpleType] => X
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] =>
[description] =>
)
[SORT] => Array
(
[name] => sort
[scale] =>
[type] => int
[maxLength] => 1
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 1
[description] =>
)
[HIDDEN] => Array
(
[name] => hidden
[scale] =>
[type] => int
[maxLength] => 11
[simpleType] => I
[notNull] =>
[primaryKey] =>
[autoIncrement] =>
[binary] =>
[unsigned] =>
[hasDefault] => 1
[defaultValue] => 0
[description] => 0:显示 1:不显示
)
)
)
SOURCE CODE:
1996 |
* 从数据库获得 meta
|
1997 |
*/
|
1998 |
|
1999 |
$this->meta = $this->dbo->metaColumns($this->qtableName);
|
2000 |
if (!is_array($this->meta) || empty($this->meta)) {
|
2001 |
FLEA::loadClass('FLEA_Db_Exception_MetaColumnsFailed');
|
2002 |
return __THROW(new FLEA_Db_Exception_MetaColumnsFailed($this->qtableName));
|
2003 |
}
|
2004 |
|
2005 |
if ($cached) {
|
2006 |
return FLEA::writeCache($cacheId, $this->meta);
|
2007 |
} else {
|
2008 |
return true;
|
2009 |
}
|
2010 |
}
|
2011 |
|
2012 |
/**
|
2013 |
* 调用 create() 方法后立即引发 _beforeCreate 事件
|
2014 |
*
|
2015 |
* 如果要阻止 create() 创建记录,该方法应该返回 false,否则返回 true。
|
2016 |
*
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA\Db\TableDataGateway.php [333]
#13 FLEA_Db_TableDataGateway::_prepareMeta()
ARGS:
Array
(
)
SOURCE CODE:
323 |
$this->dbo =& $dbo;
|
324 |
|
325 |
if (empty($this->schema) && !empty($dbo->dsn['schema'])) {
|
326 |
$this->schema = $dbo->dsn['schema'];
|
327 |
}
|
328 |
if (empty($this->fullTableName)) {
|
329 |
$this->fullTableName = $dbo->dsn['prefix'] . $this->tableName;
|
330 |
}
|
331 |
$this->qtableName = $dbo->qtable($this->fullTableName, $this->schema);
|
332 |
|
333 |
if (!$this->_prepareMeta()) {
|
334 |
return false;
|
335 |
}
|
336 |
$this->fields = array_keys($this->meta);
|
337 |
|
338 |
if (is_array($this->validateRules)) {
|
339 |
foreach ($this->validateRules as $fieldName => $rules) {
|
340 |
$fieldName = strtoupper($fieldName);
|
341 |
if (!isset($this->meta[$fieldName])) { continue; }
|
342 |
foreach ((array)$rules as $ruleName => $rule) {
|
343 |
$this->meta[$fieldName][$ruleName] = $rule;
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA\Db\TableDataGateway.php [306]
#12 FLEA_Db_TableDataGateway::setDBO(FLEA_Db_Driver_Mysql)
ARGS:
Array
(
[0] => FLEA_Db_Driver_Mysql Object
(
[NEXT_ID_SQL] => UPDATE %s SET id = LAST_INSERT_ID(id + 1)
[CREATE_SEQ_SQL] => CREATE TABLE %s (id INT NOT NULL)
[INIT_SEQ_SQL] => INSERT INTO %s VALUES (%s)
[DROP_SEQ_SQL] => DROP TABLE %s
[META_COLUMNS_SQL] => SHOW FULL COLUMNS FROM %s
[PARAM_STYLE] => ?
[HAS_INSERT_ID] => 1
[HAS_AFFECTED_ROWS] => 1
[_mysqlVersion] => 5.5.19
[TRUE_VALUE] => 1
[FALSE_VALUE] => 0
[NULL_VALUE] => NULL
[HAS_TRANSACTION] =>
[HAS_SAVEPOINT] =>
[RESULT_FIELD_NAME_LOWER] =>
[dsn] => Array
(
[driver] => mysql
[host] => 127.0.0.1
[login] => baoshengshi
[password] => 63RjM0mNvZ
[database] => baoshengshi
[port] =>
[options] =>
[prefix] => mye_
[schema] =>
[id] => mysql://baoshengshi:63RjM0mNvZ@127.0.0.1_mye_/baoshengshi//
)
[conn] => Resource id #22
[log] => Array
(
)
[querycount] => 3
[lasterr] =>
[lasterrcode] =>
[_insertId] =>
[_transCount] => 0
[_hasFailedQuery] =>
[_savepointStack] => Array
(
)
[enableLog] =>
)
)
SOURCE CODE:
296 |
// 初始化数据访问对象
|
297 |
if (!isset($params['dbo'])) {
|
298 |
if (isset($params['dbDSN'])) {
|
299 |
$dbo =& FLEA::getDBO($params['dbDSN']);
|
300 |
} else {
|
301 |
$dbo =& FLEA::getDBO();
|
302 |
}
|
303 |
} else {
|
304 |
$dbo =& $params['dbo'];
|
305 |
}
|
306 |
$this->setDBO($dbo);
|
307 |
|
308 |
// 当 skipCreateLinks 不为 true 时,建立关联
|
309 |
if (!isset($params['skipCreateLinks']) || $params['skipCreateLinks'] == false) {
|
310 |
$this->relink();
|
311 |
}
|
312 |
}
|
313 |
|
314 |
/**
|
315 |
* 设置数据库访问对象
|
316 |
*
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA.php [427]
#11 FLEA_Db_TableDataGateway::FLEA_Db_TableDataGateway()
ARGS:
Array
(
)
SOURCE CODE:
417 |
} else {
|
418 |
$classExists = class_exists ( $className );
|
419 |
}
|
420 |
if (! $classExists) {
|
421 |
if (! FLEA::loadClass ( $className )) {
|
422 |
$return = false;
|
423 |
return $return;
|
424 |
}
|
425 |
}
|
426 |
|
427 |
$instances [$className] = & new $className ( );
|
428 |
FLEA::register ( $instances [$className], $className );
|
429 |
return $instances [$className];
|
430 |
}
|
431 |
|
432 |
/**
|
433 |
* 将一个对象实例注册到对象实例容器,以便稍后取出
|
434 |
*
|
435 |
* example:
|
436 |
* <code>
|
437 |
* $obj =& new MyClass();
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA\Compatibility.php [115]
#10 FLEA::getSingleton('model_infoCate')
ARGS:
Array
(
[0] => model_infoCate
)
SOURCE CODE:
105 |
/**
|
106 |
* 返回指定对象的唯一实例(已经过时,用 FLEA::getSingleton() 代替)
|
107 |
*
|
108 |
* @param string $className
|
109 |
*
|
110 |
* @return object
|
111 |
* @deprecated
|
112 |
*/
|
113 |
function & get_singleton($className)
|
114 |
{
|
115 |
return FLEA::getSingleton($className);
|
116 |
}
|
117 |
|
118 |
/**
|
119 |
* 将一个对象实例注册到对象实例容器(已经过时,用 FLEA::register() 代替)
|
120 |
*
|
121 |
* @param object $obj
|
122 |
* @param string $name
|
123 |
*
|
124 |
* @return object
|
125 |
* @deprecated
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\app\util\common.php [80]
#9 get_singleton('model_infoCate')
ARGS:
Array
(
[0] => model_infoCate
)
SOURCE CODE:
70 |
$encode_arr = array( "ASCII","CP936", "GBK", "GB2312", "BIG5","ISO-8859-1", "JIS", "eucjp-win", "sjis-win", "EUC-JP","UTF-8");
|
71 |
$encoded = mb_detect_encoding( $data, $encode_arr);
|
72 |
return mb_convert_encoding( $data, 'utf-8', $encoded );
|
73 |
}
|
74 |
|
75 |
/* --------------------限制与具体架构中的通用函数------------------------ */
|
76 |
/**
|
77 |
* 获取数据层类
|
78 |
*/
|
79 |
function get_model($ado) {
|
80 |
return get_singleton ( 'model_' . $ado );
|
81 |
}
|
82 |
/* ------------------------SOA---------------------------- */
|
83 |
/**
|
84 |
* 图片上传
|
85 |
* @param string $dir 存储路径
|
86 |
* @param string $photoName 图片名称
|
87 |
* @param string $formName 表单获取值
|
88 |
* @return 成功返回图片名称 失败返回false
|
89 |
*/
|
90 |
function upload_photo($dir, $photoName = null, $formName = 'photo') {
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\app\base\controller.php [9]
#8 get_model('infoCate')
ARGS:
Array
(
[0] => infoCate
)
SOURCE CODE:
1 |
<?php
|
2 |
class base_controller extends FLEA_Controller_Action {
|
3 |
|
4 |
var $smarty;
|
5 |
|
6 |
function base_controller() {
|
7 |
$this->smarty = &$this->_getView ();
|
8 |
|
9 |
$smess=get_model('infoCate');
|
10 |
$this->s_assign('infoall',$smess->findAll(NULL,'number asc'));
|
11 |
$infoc=get_model('infoCate');
|
12 |
$infotitle = $infoc->findAll(array('p_id'=>'x','hidden'=>'0'),'number asc');
|
13 |
$this->s_assign('infotitle',$infotitle);
|
14 |
|
15 |
}
|
16 |
|
17 |
/**
|
18 |
* smarty简写
|
19 |
*/
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\app\base\mai\controller.php [6]
#7 base_controller::base_controller()
ARGS:
Array
(
)
SOURCE CODE:
1 |
<?php
|
2 |
FLEA::loadClass ( 'base_controller' );
|
3 |
class base_mai_controller extends base_controller {
|
4 |
|
5 |
function base_mai_controller() {
|
6 |
parent::base_controller ();
|
7 |
//初始化系统参数
|
8 |
|
9 |
$config = get_model('config');
|
10 |
$cos = $config->findAll();
|
11 |
$ins = array();
|
12 |
foreach ($cos as $key => $value){
|
13 |
$ins[$value['name']] = $value['value'];
|
14 |
}
|
15 |
$this->s_assign ('inis', $ins);
|
16 |
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\app\controller\default.php [7]
#6 base_mai_controller::base_mai_controller()
ARGS:
Array
(
)
SOURCE CODE:
1 |
<?php
|
2 |
//error_reporting(0);
|
3 |
FLEA::loadClass ( 'base_mai_controller' );
|
4 |
class controller_default extends base_mai_controller {
|
5 |
|
6 |
function controller_default() {
|
7 |
parent::base_mai_controller ();
|
8 |
$userarray=array();
|
9 |
if(isset($_SESSION ['userSession']) )
|
10 |
{
|
11 |
$this->s_assign('userid',$_SESSION ['userSession']['id']);
|
12 |
}
|
13 |
if (! empty ( $_REQUEST ['id'] )) {
|
14 |
$info = get_model ( 'info' );
|
15 |
$ob = $info->find ( $_REQUEST ['id'] );
|
16 |
|
17 |
$this->s_assign ( 'ob', $ob);
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA\Dispatcher\Simple.php [106]
#5 controller_default::controller_default('default')
ARGS:
Array
(
[0] => default
)
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: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA\Dispatcher\Simple.php [77]
#4 FLEA_Dispatcher_Simple::_executeAction('default', 'index', 'controller_default')
ARGS:
Array
(
[0] => default
[1] => index
[2] => controller_default
)
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: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA.php [815]
#3 FLEA_Dispatcher_Simple::dispatching()
ARGS:
Array
(
)
SOURCE CODE:
805 |
require_once ($MVCPackageFilename);
|
806 |
}
|
807 |
FLEA::init ();
|
808 |
|
809 |
// 载入调度器并转发请求到控制器
|
810 |
$dispatcherClass = FLEA::getAppInf ( 'dispatcher' );
|
811 |
FLEA::loadClass ( $dispatcherClass );
|
812 |
|
813 |
$dispatcher = & new $dispatcherClass ( $_GET );
|
814 |
FLEA::register ( $dispatcher, $dispatcherClass );
|
815 |
$dispatcher->dispatching ();
|
816 |
}
|
817 |
|
818 |
/**
|
819 |
* 准备运行环境
|
820 |
*
|
821 |
* @param boolean $loadMVC
|
822 |
*/
|
823 |
function init($loadMVC = false) {
|
824 |
static $firstTime = true;
|
825 |
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\lib\FLEA\FLEA\Compatibility.php [263]
#2 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
253 |
FLEA::init();
|
254 |
}
|
255 |
|
256 |
/**
|
257 |
* FLEA 应用程序入口(已经过时,用 FLEA::runMVC() 代替)
|
258 |
*
|
259 |
* @deprecated
|
260 |
*/
|
261 |
function run()
|
262 |
{
|
263 |
FLEA::runMVC();
|
264 |
}
|
265 |
|
266 |
/**
|
267 |
* 初始化 Ajax,返回 FLEA_Ajax 对象实例(已经过时,用 FLEA::initAjax() 代替)
|
268 |
*
|
269 |
* @return FLEA_Ajax
|
270 |
* @deprecated
|
271 |
*/
|
272 |
function & init_ajax()
|
273 |
{
|
Filename: D:\www\web\baoshengshipping.com_PCwH1z4WOR7jloHYgToR\wwwroot\en\index.php [39]
#1 run()
ARGS:
Array
(
)
SOURCE CODE:
29 |
)
|
30 |
*/
|
31 |
);
|
32 |
//FLEA::setAppInf('urlMode', URL_REWRITE);
|
33 |
FLEA::setAppInf('controllerAccessor', 'c');
|
34 |
FLEA::setAppInf('actionAccessor', 'a');
|
35 |
FLEA::setAppInf('logEnabled', false);//关闭日志记录
|
36 |
FLEA::loadAppInf(APP.'config/smarty_config.php');
|
37 |
FLEA::import(APP);
|
38 |
FLEA::init();
|
39 |
run();
|
40 |
?>
|