Welcome Guest, Not a member yet? Register   Sign In
base_url() and url helper
#9

[eluser]jedd[/eluser]
[quote author="elaniobro" date="1267338545"]LIVE
Code:
$config['base_url']    = "http://www.example.com/5/system/application";
[/quote]

Don't do that. Do this instead (as I've already suggested)
Code:
$config['base_url']    = "http://www.example.com/5/";



[quote author="elaniobro" date="1267338545"]
[/code]
<img src="&lt;?= base_url();?&gt;img/logo_tagline.png"/>
[/code]
[/quote]

Don't do that. Do this instead

Code:
img('img/logo_tagline.png');

Have a play with it - taking note of your page-source in your browser - and see how you go. You can also look at your web server (apache) access and error logs, to see what files (say logo_tagline.png) it's trying to find, and where it's looking for it in the file system - this is often very instructive in these kinds of cases.


Messages In This Thread
base_url() and url helper - by El Forum - 02-27-2010, 03:06 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:02 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:08 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:13 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:13 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:15 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:27 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:29 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:40 PM
base_url() and url helper - by El Forum - 02-27-2010, 06:53 PM
base_url() and url helper - by El Forum - 02-28-2010, 04:58 AM
base_url() and url helper - by El Forum - 02-28-2010, 11:13 AM
base_url() and url helper - by El Forum - 02-28-2010, 11:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB