ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

CI for existing project

September 08, 2007 4:39am

Subscribe [6]
  • #1 / Sep 08, 2007 4:39am

    bizhat

    1 posts

    Hi,

    We already have a software, which is 90% finished. Now mostly we are doing bug fixes and adding new features.

    If i want to start using CI, i need to start from step 1 ? That is rewrite all my existing codes ?

    Is there anyway i can migrate my code to CI part by part. Rewriting all the part of the code to CI is lot of work, but if i can use CI in my existing project and add new codes in “CI WAY” it will be great.

    Thanks,

    Yujin

  • #2 / Sep 08, 2007 7:06am

    gunter

    192 posts

    1) you could let your application as it is and “dive” into CI with this: http://ellislab.com/forums/viewthread/49423/ - I donĀ“t know if its working properly, I never used it…

    2) I you want integrate your application into CI step by step, I would first see, if it runs, if you include it in a controller/function… then, if your application is organized in files like main.php, this.php, that.php… would make at first a controller with functions like main(), this(), that() and simply include your scripts at first… if it runs you can use the recources of CI with $CI =& get_instance();...

    then, whenever you have time, you can put your html part by part into CI view files, rewrite the db stuff, and so on…
    I hope I helped a little bit, I have only experience with codeigniting small all-in-one-file scripts…

  • #3 / Sep 08, 2007 7:26pm

    phpwebdev

    50 posts

    My suggestion :

    Finish this application without CI.
    And after that if u have time try to build it with CI
    This is best test to compare it (Both method )  and good start to learn CI

    Regards

  • #4 / Sep 09, 2007 9:08am

    bijon

    46 posts

    Hi,

    If your project is finished 90% , then you do not need to convert the things for only 10%.
    First complete the 10% work and the last 10% is always crucial . After finish the project then you change the things in CI. And you will done it much faster in CI .

  • #5 / Sep 09, 2007 8:44pm

    Jim OHalloran

    55 posts

    It depends a lot on how the application has been coded.  If the existing code makes use of get parameters, or mixes data access, html and logic together in the same file then it will take quite a bit of work to migrate to CI.  On the other hand, if it’s already written using a MVC style where presentation and logic are cleanly seperated it might be able to do it with only minor code refactoring.

    Personally, if this is a commercial project, I probably wouldn’t bother trying to migrate the existing code.  Either just finish the app in the way you’ve been working, or build out the remaining 10% in CI and run it alongside the existing code.  If it’s a personal project where time is less of an issue that changes the equasion a bit.

    Jim.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases