Welcome Guest, Not a member yet? Register   Sign In
Getting Base URLs?
#2

[eluser]cb951303[/eluser]
hello I asked the same question yesterday Smile

first you should load the url helper. then you can use the "base_url()" function. after that the way I do and told by others is to design your view files like this '<img src="<?php echo base_url(); ?>assets/test.png" alt="" />' And then you can place your asset folder to the base directory (where the CI index.php is)


Messages In This Thread
Getting Base URLs? - by El Forum - 09-07-2008, 01:06 PM
Getting Base URLs? - by El Forum - 09-07-2008, 01:14 PM
Getting Base URLs? - by El Forum - 09-07-2008, 01:21 PM



Theme © iAndrew 2016 - Forum software by © MyBB