开发者

Can individual classes from CodeIgniter be integrated into other frameworks / projects?

Can individual classes from CodeIgniter be integrated into other frameworks / projects without using the underlying framework to build the application?

I believe this can be achieved in Zend if I only wanted to use specific classes (such as开发者_开发百科 Zend_DB, Zend_Validate, etc…) by linking to just that component without needing to use the underlying framework for building the application. Can someone please confirm this? In addition, what other frameworks (e.g., Symphony, CakePHP) have this ability, specifically CodeIgniter?


Just look at the class definitions and see what they depend on. Likely they are tightly coupled to the rest of the framework.

ZF was defined from the beginning as a collection of components, or tools, which is why stealing individual classes is so easy - it was intentional.


CI is meant to be extremely loosely coupled, so perhaps OP will have some luck. I don't have any examples however

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜