Welcome Guest, Not a member yet? Register   Sign In
Error in extending the helper
#1

[eluser]jairoh_[/eluser]
I am extending the url_helper
this is the extended helper
Code:
<?php

//returns the site name
function site_name () {
$CI =& get_instance();
return $CI->config->item('site_name');
}

but the problem is, when i call it in the controller, it will only return the site name and kill the page, it will not show the view. but if i'll change my extended url_helper, it works fine. what happen to this one? tnx
[code]

function index () {
echo site_name();

$this->display();
}
[code]




Theme © iAndrew 2016 - Forum software by © MyBB