I am having a strange problem with my Codeigniter Helper class. I have declared some functions in a helper. I have included the helper in autoload. Its running perfectly in local machine. But when I run it on live server,the helper functions are workng in controller, but in view its giving Fatal error: Call to undefined function strip_tags().
in helper file my_helper.php the function is :
function do_strip($text) {
$text = strip_tags($text);
$text = stripcslashes($text);
return $text;
}
autoload.php :
$autoload['helper'] = array('url','form','my_helper');
in my view I have called :
<?=do_strip($someval)?>
Have missed something or done some mistake ? Can someone please help me on this.
remove helper
text in auto load :
$autoload['helper'] = array('url','form','my');
For more information, refer this Link
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.