Exception: FLEA_Exception_MissingAction
Message: 缺少控制器方法 "fSuite::images()".
Filename: /home/xnsoft6xxnqspo9fjt/wwwroot/libs/FLEA/FLEA/Dispatcher/Simple.php [77]
#3 FLEA_Dispatcher_Simple::_executeAction('fSuite', 'images', 'Controller_fSuite')
ARGS:
Array
(
[0] => fSuite
[1] => images
[2] => Controller_fSuite
)
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: /home/xnsoft6xxnqspo9fjt/wwwroot/libs/FLEA/FLEA.php [803]
#2 FLEA_Dispatcher_Simple::dispatching()
ARGS:
Array
(
)
SOURCE CODE:
| 793 |
require_once($MVCPackageFilename);
|
| 794 |
}
|
| 795 |
FLEA::init();
|
| 796 |
|
| 797 |
// 载入调度器并转发请求到控制器
|
| 798 |
$dispatcherClass = FLEA::getAppInf('dispatcher');
|
| 799 |
FLEA::loadClass($dispatcherClass);
|
| 800 |
|
| 801 |
$dispatcher =& new $dispatcherClass($_GET);
|
| 802 |
FLEA::register($dispatcher, $dispatcherClass);
|
| 803 |
$dispatcher->dispatching();
|
| 804 |
}
|
| 805 |
|
| 806 |
/**
|
| 807 |
* 准备运行环境
|
| 808 |
*
|
| 809 |
* @param boolean $loadMVC
|
| 810 |
*/
|
| 811 |
function init($loadMVC = false)
|
| 812 |
{
|
| 813 |
static $firstTime = true;
|
Filename: /home/xnsoft6xxnqspo9fjt/wwwroot/index.php [48]
#1 FLEA::runMVC()
ARGS:
Array
(
)
SOURCE CODE:
| 38 |
/**
|
| 39 |
* 指定找不到控制器或动作方法时要调用的错误处理过程
|
| 40 |
*/
|
| 41 |
// FLEA::setAppInf('dispatcherFailedCallback', 'page_404');
|
| 42 |
|
| 43 |
// 导入应用程序对象搜索路径
|
| 44 |
FLEA::import(APP_DIR . DS . 'shared');
|
| 45 |
FLEA::import(APP_DIR . DS . 'frontend');
|
| 46 |
|
| 47 |
// 启动 MVC 模式,并运行应用程序
|
| 48 |
FLEA::runMVC();
|
| 49 |
|
| 50 |
|
| 51 |
/**
|
| 52 |
* 当指定的控制器或者动作不存在时调用此方法
|
| 53 |
*
|
| 54 |
* 开发者可以在此方法中显示更友好的错误信息
|
| 55 |
*/
|
| 56 |
function page_404($controller, $action)
|
| 57 |
{
|
| 58 |
echo "请求的控制器 \"{$controller}\" 没有找到,或者该控制器的动作 \"{$action}\" 没有定义。";
|