FUEL CMS User Guide : Version 0.9.3


MY URL Helper

Contains functions to be used with urls. Extends CI's url helper and is autoloaded.

This helper is loaded using the following code:

$this->load->helper('url');

The following functions are available:

site_url(uri)

Overwrites CI's site_url() function so it can ignore uris with "http" at the beginning.

https_site_url(uri, [remove_https])

Creates https URLs or removes the https from the site_url if the remove_https flag is set to TRUE.

uri_path([rerouted], [start_index])

Returns the uri path and will normalize the slashes.

uri_segment([n], [rerouted])

Returns the uri segment. Acts as a convenience function to the $this->uri->segment($n) and $this->uri->rsegment($n).

is_http_path(path)

Determines if a path uses http at the beginning.

is_home()

Determines the current URI is the homepage or not.