【发布时间】:2012-02-07 21:16:16
【问题描述】:
我希望建立一个 Kohana 2.3.4 站点,并希望拥有一组共享的模型/配置/库/帮助程序,前端和管理面板都有自己的控制器/视图.
设置文件系统以创建类似内容的最佳方法是什么?
干杯。
快速更新:
我通过设置让它以一种 hackyish 的方式工作:
/
application/
- config/
- controllers/
- views/
application_admin/
- config/
- controllers/
- views/
modules/
- shared_code/
- - models/
www_root/
- admin/
- - index.php
- index.php
然后 admin/index.php 指向 ../../application_admin,公共 index.php 指向 ../application,并且在 config/config.php 中为管理员和公共,我已经启用“shared_code”模块。
有没有更好的方法,或者这样做有什么改进?
【问题讨论】:
标签: php kohana structure admin kohana-2