Welcome Guest, Not a member yet? Register   Sign In
[OT] Nav breaks with method call in URL
#4

Not really, base_url() will output the base url, base_url('foo/bar') will output the base url with foo/bar on the end.

Docs: http://www.codeigniter.com/user_guide/he...l#base_url

Personally I prefer to use it with the link inside the function call. I think it is cleaner myself:
PHP Code:
<img src="<?php echo base_url(); ?>images/SA-Logo-Web-507.png" />

<
img src="<?php echo base_url('images/SA-Logo-Web-507.png'); ?>" /> 

But either is fine.

Paul.
Reply


Messages In This Thread
RE: [OT] Nav breaks with method call in URL - by PaulD - 08-04-2016, 07:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB