开发者

How to integrate zend framework in an existing website

I'm curre开发者_如何学编程ntly learning Zend Framework and now I am looking for a way to integrate it into an existing website. This website is coded in an extremely complex spaghetti way, and I am hoping that it will be easier to read by integrating it into Zend and slowly refactor it. How could i run legacy code and the zend framework + mod_rewrites side by side?

Greetings,

Bas


Since you don't give any information on how your current site is structured, there's absolutely no way to answer this question.

Some guidelines though : make sure you first tackle routing, you could probably solve this by including your current scripts in the relevant controller actions. After routing is ok, you can have a look at rewriting the interactions so you use ZF's Zend_Request/Response and afterwards start integrating other Zend Framework functionality (ie. Zend_Acl/Zend_Auth for user permissions and authentication).

BTW It might be a lot easier to start from scratch and do a clean rewrite, picking up pieces of existing code as you go...

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜