base_url() for everything?

#5
[eluser]Vheissu[/eluser]
I tend use a base href in the head of my views like so (just under the title tag)

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

The plus about this is that it will append your base url to the front of everything without a http or www on it. So if you have a link with just example set as it's href, the base href will turn it into baseurl/example instead.


Messages In This Thread
base_url() for everything? - by El Forum - 09-06-2010, 08:54 AM
base_url() for everything? - by El Forum - 09-06-2010, 10:31 AM
base_url() for everything? - by El Forum - 09-06-2010, 10:40 AM
base_url() for everything? - by El Forum - 09-06-2010, 11:00 AM
base_url() for everything? - by El Forum - 09-06-2010, 05:36 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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