在Action下新建一个文件ShowAction.class.php,里面增加一个Show方法,那么访问这个方法用:
http://localhost:8888/think/index.php?m=Show&a=abc
通过m和a来讲解ThinkPHP的流程。

当然这个例子要通过,修改一下$control为IndexAction。
不理解不要紧,关键要知道Action是写在文件:Llib->Action->IndexAction.class.php里,一个方法对应一个页面。
lesson4.rar
( 1.52 MB 下载:6 次 )
最佳答案