• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5


I made a file called MY_String_helper to extend the CI String_helper with the next function:
function strip_class($str)
  $str = strtolower($str);
  $str = str_replace(array("ñ", "ñ","ñ"),"nh",$str);
  return $str

Then I load the My_Helper from the control ($this->load->helper('string')Wink but when I used the function in a view with data from a model, it said that the function don't exists

Fatal error: Call to undefined function strip_class()

Maybe your server's file system is case sensitive, try MY_string_helper.php.
Did you save the file in application/helpers/?

Ok, erm... It is solved... How embarrasing... it's a newbie's mistake... well, I'm a newbie after all...

Thanks for your help pistolPete

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.