[eluser]boltsabre[/eluser]
What is the value of $somestring? Is it longer than 4 words???
To be honest I've never used this function, and I'm at work right now and don't have a CI installation to play with. But some other things to try if your problem persists:
- Put an echo statement at the end of the helper, do you see it? If so then you know that the function is being called and run.
- Try autoloading the helper.
- Try loading the helper in your controller, not the constructor.
- Try assigning your string to a variable and then echo that (ie, $string = word_limiter($somestring, 4); echo $string