How to convert zend Framework PHP code to cakephp

I want to convert zend php to php cake, but not find the right book and do it?

+1
source share
2 answers

Just download Cake, install and configure it, and then gradually move the existing code into it. There is no standard recipe for how to do this. You must do this manually, class by class, line by line. The Cake API is very different from the ZF API, so it will take some time, depending on how much you received. In addition, ZF does not have ActiveRecord, while Cake is built around this, so part of the database is likely to take longer.

Migrating from a framework to a framework is what you need to enter in the error code. If you no longer have a reliable test base, this is a good opportunity to add a test before class transfer.

On the side: why do you still want to do this? Cake is compatible with PHP4 and has a rather dirty and slowly executable code base. Porting your application from ZF to Cake is likely to be a downgrade. And, as others have pointed out, you could use Cake and ZF.

+1
source

I suggest you learn how to use both frameworks, and then manually port the code. There are no tools to do this for you; there is simply no way to do this automatically, especially considering the very flexible nature of ZF.

Learn both options, use your understanding to port the code.

0
source

Source: https://habr.com/ru/post/1773982/


All Articles