Site Migrate |
[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
[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.
[eluser]n0xie[/eluser]
You might want to take a look at the method we use at Isset for migrating websites to CodeIgniter.
[eluser]alainm[/eluser]
n0xie: do you have a sample of the My_Router that you built?
[eluser]n0xie[/eluser]
Code: class MY_Router extends CI_Router {
[eluser]alainm[/eluser]
I'm having some issues with this.. would you be able to share what the index.php looks like?
[eluser]alainm[/eluser]
i have found my issue. thanks so much for all your help.
[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. |
Welcome Guest, Not a member yet? Register Sign In |