views:

99

answers:

1

I want to convert an application from CakePHP to Code Igniter. Has anyone tried to do this? With my CakePHP application almost all the coding has been done in the controller layer, with the models pretty much exactly as they come out of baking.

+4  A: 

CakePHP is newer, more feature rich and heavier than Code Igniter (CI is designed to have a much smaller footprint) so you will most likely find yourself creating functionality in CI to match cake's.

CakePHP also handles some core capabilities differently than CI. For example, routing functionality is handled via a dedicated class rather than per controller as in CI (via _remap).

I have never seen a tool that helps to automate such a conversion as it's rarely, if ever, done.

Taking all that into account, I believe the best approach is to rebuild your application from the ground up, drawing on your existing code and database schema.

webbiedave
Agreed. I don't think you're going to be able to reuse a lot of code. THat said, you can reuse most of the design and database schema, which in my mind is really valuable as well (I'm currently doing the same thing from Cake to Zend as an experiment to learn Zend by implementing a system that I already know really well).
Travis Leleu
@webbiedave thanks, I suspected that this might be the case. I was hoping someone might have tried it before me though.
icc97
@Travis Leleu, thanks also, I love to know what you find as a result of switching.
icc97