多入口注册问题

#1 anythink

//注册了入口地址 $spConfig['controller_path'] = APP_PATH.'/controller/'.basename(__FILE__,'.php');  

//显示也没问题
echo $spConfig['controller_path'];

E:\server\htdocs\appcenter/controller/index

//可是执行的时候还是只执行E:\server\htdocs\appcenter/controller/main.php

未命名.jpg

不知道是什么问题

2011-09-08 17:46:51

#2 anythink


// 载入配置文件
$GLOBALS['G_SP'] = spConfigReady(require(SP_PATH."/spConfig.php"),$spConfig);
dump($GLOBALS);
exit;

spConfigReady 没有将我更改的配置载入配置列表

2011-09-08 17:49:11

#3 anythink

没事了.... 代码执行顺序的问题

2011-09-08 17:55:40