• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Losing Styles and Images relative to document path

#3
[eluser]Nikhil Vijayan[/eluser]
Add the below code between your head tags.. so u will not need to worry about adding base_url function in every css,images assets

Code:
<base href="<?= base_url(); ?>" />

also note that you will have to either load url helper in each controller or better autoload it


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.