当前位置: 代码迷 >> PHP >> thinkphp,执行哪个步骤
  详细解决方案

thinkphp,执行哪个步骤

热度:36   发布时间:2016-04-28 19:49:29.0
thinkphp,执行哪个方法
thinkphp框架,有个index.class.php文件,对应一个index.html文件。index.class.php文件有两个方法,一个index()和order()方法。index.html文件的action为__URL__/index时,执行index()方法,为什么才能执行order方法
------解决方案--------------------
__URL__/order
------解决方案--------------------
是index()方法对应index.html文件,order()方法就要在建个order.html页面。U('Index/order');
------解决方案--------------------
不太明白你的意思。可以考虑把方法order()放到方法index()中