• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.