Welcome Guest, Not a member yet? Register   Sign In
Losing Styles and Images relative to document path
#4

[eluser]Unknown[/eluser]
Thank you both, that does it!

For anyone who needs it:
I had taken the first responder's advice and applied the base_url() function before my css and image tags in my header view. I opened up config/autoload.php and added (url) into my helper array. But after the second response, I see I can additionally just throw <base href="<?=base_url();?>" /> into my <head> tag and thereafter don't need to apply anything to my urls, I can just leave them as is.

Solved perfectly, thanks again.


Messages In This Thread
Losing Styles and Images relative to document path - by El Forum - 06-14-2008, 10:53 PM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 01:12 AM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 11:45 AM
Losing Styles and Images relative to document path - by El Forum - 06-15-2008, 11:50 AM
Losing Styles and Images relative to document path - by El Forum - 08-22-2008, 07:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB