Site Migrate - 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: Site Migrate (/showthread.php?tid=26743) |
Site Migrate - El Forum - 01-21-2010 [eluser]alainm[/eluser] Ok, i have looked at the documentation, and i'm a little confused. I have an existing site that is built in php. I want to move this site to code igniter, but i would like to migrate it slowly, so that i co-exists nicely with my other code igniter application. So, i'm attempting to follow the instructions: http://codeigniter.com/wiki/site_migrate/ i created the directory system/application/views/site_migrate Now i'm to the point where the index.php page pulls up, but it can't located the css files also the image files. do i need to modify the site to have specific path? also from my menu, how to i refer to the pages? example about.php this file used to be in the docroot. now if i click on the menu item, it's still thinks its located in the docroot. do i need to make a change there also? thanks for you help. cheers, Alain Site Migrate - El Forum - 01-21-2010 [eluser]bretticus[/eluser] Use absolute paths for your images and css files, etc. If your website URL is http://yoursite.tld/index.php/controller/method and you have an img tag using a relative path: Code: <img src="images/blinking.gif"> Than your browser will try to find it under http://yoursite.tld/index.php/controller/images and that is just not right. Just put a beginning slash before your images folder to designate the website root path. ie: Code: <img src="/images/blinking.gif"> Probably as simple as that. Site Migrate - El Forum - 01-22-2010 [eluser]n0xie[/eluser] You might want to take a look at the method we use at Isset for migrating websites to CodeIgniter. Site Migrate - El Forum - 01-22-2010 [eluser]alainm[/eluser] n0xie: do you have a sample of the My_Router that you built? Site Migrate - El Forum - 01-22-2010 [eluser]n0xie[/eluser] Code: class MY_Router extends CI_Router { Site Migrate - El Forum - 01-24-2010 [eluser]alainm[/eluser] I'm having some issues with this.. would you be able to share what the index.php looks like? Site Migrate - El Forum - 01-24-2010 [eluser]alainm[/eluser] i have found my issue. thanks so much for all your help. Site Migrate - El Forum - 01-24-2010 [eluser]n0xie[/eluser] No problem. Hope it was useful. Site Migrate - El Forum - 01-25-2010 [eluser]sophistry[/eluser] hi, for future reference here is the link to the site_migrate wiki forum thread: http://ellislab.com/forums/viewthread/91182/ the wiki articles all have forum threads. i just stumbled on this by accident... glad you worked it out! cheers. |