我正在寻找建立一个 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 “ 模块。
有没有更好的方法,或者这样做有什么改进?