// 绑定当前访问到index模块
define('BIND_MODULE','index');
绑定后,我们的URL访问地址则变成:
http://serverName/index.php/控制器/操作/[参数名/参数值...]
// 绑定当前访问到index模块的index控制器
define('BIND_MODULE','index/index');
http://serverName/index.php/操作/[参数名/参数值...]
访问的模块是index模块,控制器是Index控制器。
======================抛出问题======================
如果想绑定到worker模块中的CashNotice控制器,这么写是错的:
// 绑定当前访问到index模块的index控制器
define('BIND_MODULE','worker/CashNotice');
应该写成这样:
// 绑定当前访问到index模块的index控制器
define('BIND_MODULE','worker/cash_notice');
=====================
转载请注明出处:
作者:Veris
最族 [ http://www.mostclan.com ]