建立后台管理模块的目录结构。在APP目录下建立Admin目录,结构与Home目录一样。
D:\wamp\www\wish\APP\Admin\Controller\IndexController.class.php:
1
2
3
4
5
6
7
8
9
|
namespace
Admin\Controller;
use
Think\Controller;
class
IndexController
extends
Controller {
public
function
index(){
//echo C('TMPL_EXCEPTION_FILE');
echo
'this is admin index'
;
//$this->display();
}
|
浏览:http://localhost/wish/index.php/Admin/Index/index
显示:
this is admin index