Cool tweak for site_url()

by gowtham 2010-09-17 11:25:00

function site_url($uri = '')
{
if (func_num_args() > 1) {
$args = func_get_args();
$uri = implode('/', $args);
}
$CI = get_instance();
return $CI->config->site_url($uri);
}

Tagged in:

638
like
0
dislike
0
mail
flag

You must LOGIN to add comments