Home > Backend Development > PHP Tutorial > thinkphp,执行哪个步骤

thinkphp,执行哪个步骤

WBOY
Release: 2016-06-13 11:47:43
Original
823 people have browsed it

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()中

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template