+ -
当前位置:首页 → 问答吧 → TP2.1 U函数输出__URL__等常量问题

TP2.1 U函数输出__URL__等常量问题

时间:2011-04-14

来源:互联网

当前URL:http://localhost/appdir/Index/index
URL_MODEL=2时
('__SELF__')输出:/appdir/Index//appdir/Index/index
URL_MODEL=0时
('__SELF__')输出:/appdir/index.php?m=Index&a=/appdir/Index/index

貌似URL解析有问题
我的项目放在站点根目录的appdir目录里,入口文件
define('APP_NAME','appdir');
define('APP_PATH','.');
反复调试很多次,TP2.0版本也存在同样的问题
是我哪里设置不当吗?

作者: zys4416   发布时间: 2011-04-14

你是什么运行环境?  nginx?

作者: luofei614   发布时间: 2011-04-15