CodeIgniter Forums
Error in extending the helper - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: Error in extending the helper (/showthread.php?tid=58167)



Error in extending the helper - El Forum - 05-21-2013

[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]