您好,欢迎来到三六零分类信息网!老站,搜索引擎当天收录,欢迎发信息

thinkphp,执行哪个方法

2025/6/27 12:01:18发布11次查看
thinkphp url
thinkphp框架,有个index.class.php文件,对应一个index.html文件。index.class.php文件有两个方法,一个index()和order()方法。index.html文件的action为__url__/index时,执行index()方法,为什么才能执行order方法
回复讨论(解决方案) 就是有两个function,一个是function index()另一个是function order(),怎样选择执行哪个
__url__/order
__url__/order
这个办法不行,执行不了order方法
是index()方法对应index.html文件,order()方法就要在建个order.html页面。u('index/order');
不太明白你的意思。可以考虑把方法order()放到方法index()中
该用户其它信息

VIP推荐

免费发布信息,免费发布B2B信息网站平台 - 三六零分类信息网 沪ICP备09012988号-2
企业名录 Product