Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB