CodeIgniter Forums
How can I Convert an Html Page for use. - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: How can I Convert an Html Page for use. (/showthread.php?tid=31388)



How can I Convert an Html Page for use. - El Forum - 06-17-2010

[eluser]Unknown[/eluser]
I have an html website with images/css and jquery currently running.

I tried pasting the html code in the view page, the page displays, but no formating (css) or images.

My guess is I dont have the assets in the right place or I am not referencing them correctly.

Would some kind soul point me in the right direction please?

Thank You.


How can I Convert an Html Page for use. - El Forum - 06-17-2010

[eluser]Unknown[/eluser]
Got it:

Just remember that your .htaccess must not redirect those requests for the assets to CI.

Do not put the assets in the system or application directory (you may want to move system and application out of the webroot or rename them).

Put them in a separate dir next to index.php, and use base_url() + ‘dirname/file.png’ to get the address.


How can I Convert an Html Page for use. - El Forum - 06-17-2010

[eluser]Derek Allard[/eluser]
Welcome to CI Gazzooks. Glad you got that sorted.