Separate frontend and backend with Yii framework
用Yii框架分离前端和后端的最好和最正确的方法是什么?
There's no offical way to do this in Yii 1.x, but there are several approaches.
Have a look at yiinitializer advanced, to get an impression how frontend
and backend
are separated here. They are more or less two applications sharing a common
folder.
My project Phundament takes a simpler approach, just by switching themes depending on controller routes with the multi-theme extension.
See nice article here http://habrahabr.ru/post/117457/ .
English version available here: http://www.yiiframework.com/wiki/63/organize-directories-for-applications-with-front-end-and-back-end-using-webapplicationend-behavior/
It's main goal is attaching special behaviors.
I like this way most of all.
上一篇: iOS SQLite全文搜索示例
下一篇: 使用Yii框架分离前端和后端