We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
I needed to get the domain name only based on the base_url() function. I added the following function to the url_helper.php :
/**
function getDomain() { $CI =& get_instance(); return preg_replace("/^[\w]{2,6}://([\w\d.-]+).*$/","$1", $CI->config->slash_item('base_url')); }
So you can use it in your code in the same manner than site_url() or base_url()
Hope this help somebody !