本文共 442 字,大约阅读时间需要 1 分钟。
在controller下面可以新建文件夹的嵌套方式
譬如: http://domain.com/site/index
文件:controllers\SiteController.php
我们改为下面的路径:
\controllers\admin\other\SiteController.php
render('index'); }}
它的访问就会变成 http://domain.com/admin/other/site/index
http://192.168.7.10:7001/admin/other/site/index
在view中对应的文件也变为:
backend\theme\default\views\admin\other\site\index.php
关于设置theme,参看:
http://blog.csdn.net/terry_water/article/details/39697751
这样每一个功能块,可以用一个文件夹来进行,这样比较清晰