CodeIgniter Forums
Introducing/Integrating CodeIgniter into an existing project - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: Introducing/Integrating CodeIgniter into an existing project (/showthread.php?tid=33822)



Introducing/Integrating CodeIgniter into an existing project - El Forum - 09-09-2010

[eluser]lieutdan13[/eluser]
I have a rather large and somewhat complex application with a lot of AJAX and PDF reports that I would eventually like to migrate into a well developed framework. I would like to migrate a few models at a time and not all at once, since the project is constantly changing and I do not have the time to completely stop development to migrate. I do understand that CodeIgniter is designed to be used for new applications and starting from scratch, but I'm going to ask the question anyway.

Does anyone have any guides or suggestions on migrating existing projects into CodeIgniter?

I will answer my question for some of you ahead of time. I don't want any of these responses:
If it ain't broke, don't fix it.
It's more trouble than it's worth.
Why would you want to do that if you already have your own framework?

I will accept other answers...


Thanks in advance.


Introducing/Integrating CodeIgniter into an existing project - El Forum - 09-09-2010

[eluser]n0xie[/eluser]
You could try our Migrate solution


Introducing/Integrating CodeIgniter into an existing project - El Forum - 09-09-2010

[eluser]Georgi Budinov[/eluser]
This a difficult task and it depends on the current codebase of your project. As I understand you want to migrate partially module by module the whole project. This is tough not only for CodeIgniter but whatever else is out there.
One guide that I can give you here - there is library for CodeIgniter -> HMVC this is for modular separation, there are other too but I am aware of it. So it adds some methods and classes the framework that could be handy. I have never tried it out but it has modules class the can invoke functions something like this <?php echo modules::run('module/controller/method', $param, $...); ?> So this should be easy to integrate in your current project, and module by module I imagine that at some point you will stop needing that old code. Then these modules could be used as they are when you decide to totally switch.

Hope this helps.


Introducing/Integrating CodeIgniter into an existing project - El Forum - 09-09-2010

[eluser]lieutdan13[/eluser]
Thank you for your suggestions. n0xie, I must not have used the right keywords when searching for the existing post.