Welcome Guest, Not a member yet? Register   Sign In
Doc fix suggestion: site_url()
#1

[eluser]a&w[/eluser]
Quote:site_url()
Returns your site URL, as specified in your config file. The index.php file (or whatever you have set as your site index_page in your config file) will be added to the URL, as will any URI segments you pass to the function.

site_url is not specified in the config file, the base_url is. I think that passage should say something more like:

Quote:site_url(uri_segments)
Returns your site URL. The index.php file (or whatever you have set as your site index_page in your config file) will be added to the base_url as specified in your config file along with any URI segments you pass to the function.

site_url goes on to say:
Quote:The above example would return something like: http://example.com/index.php/news/local/123

I think same should be shown for base_url, show an example using same site what would be generated:
Quote:The above example would return something like: http://example.com/




Theme © iAndrew 2016 - Forum software by © MyBB