I already have a working OOP website. Most of the php is separated from the html. I was wondering if anyone had any tips on how to apply that site into the CI Framework. The website uses jquery, html, css, php, javascript. It also consists of a lot of libraries and classes that I bought from code canyon. For example, a geolocation library, phpthumb (image thumbnails), like and dislike system. How does one go about importing these libraries into CI?
3
- 1Reading about creating Libraries and Application Packages might be a good place to start.Colin Brock– Colin Brock2012-03-08 15:50:58 +00:00Commented Mar 8, 2012 at 15:50
- There is no "Do X" solution here. You have to do it manually. For anything that isnt compatible with CI you need to write an Adapter.Gordon– Gordon2012-03-08 15:52:31 +00:00Commented Mar 8, 2012 at 15:52
- Yes. I know that. I'm simply asking for tips that would help me speed up the process.Mico Abrina– Mico Abrina2012-03-08 15:56:04 +00:00Commented Mar 8, 2012 at 15:56
Add a comment |
1 Answer
There really isn't a 'step by step' process to give you.
You have to ultimately do the following:
- Outline each and every component to migrate into CI
- Test each component under CI (many libraries can be loaded just fine under CI, and play nice with the rest of your code, but do need to be tested). Read here about creating your own (custom) libraries and using them under CI.
- Create the required controllers
- Create the required models
- Create & copy over your HTML and structure them in views
- Test.. test.. and test some more
Its not a simple process, but breaking it down lets you see what you have before you.