I got an old running project that was developed with HTML, CSS, PHP, MySQL, JS, AJAX (jQuery) but without MVC, ORM, etc. Just HTML/CSS/JS and PHP is seperated. I am currently working on this project and do some improvements of the sotware from time to time. Since the system is in use every day, I want to introduce CakePHP module by module and improve the quality step by step.
Having MVC, ORM, etc. would make maintaining more efficient but I don’t have the time to rewrite everything at once. I don’t think there won’t be many problems except the login procedure (make sure that when you log in using the routine of CakePHP that the user is logged in while using modules of the old system) and linking of the files.
What do you think about it? Are there more obstacles?
Well… If you already have application (that is not MVC) and you want to convert it to CakePHP, you will have to think about some things…
I think the best way for you is to download a fresh CakePHP and start with models. Do all your validations. Then create controllers and some of code which is “global” put in Components.
Then do your view.
Well… Use Bake script and it will be easier a lot. If you have any further questions or if you need help, feel free to ask here or send me an e – mail (provided on my profile).
I think that converting PHP app to MVC (CakePHP) is a really great idea. It is much easier for changing later, adding some functionality and debugging. 🙂
Good luck!