![]() |
How to use a helper inside template parser? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: How to use a helper inside template parser? (/showthread.php?tid=22107) |
How to use a helper inside template parser? - El Forum - 08-29-2009 [eluser]cavi1905[/eluser] Hello everybody! I had used helpers inside a template parser but they didn't working. My code: Code: {lyrics} url_title(), word_limiter() aren't working but no errors... Can everybody help me? Thanks! How to use a helper inside template parser? - El Forum - 08-30-2009 [eluser]kulldox[/eluser] You actually should be able to use helper methods if that helper is loaded for the current object. Is the URL helper ( for url_title()) and Text helper (for word_limiter()) loaded in your controller or in autoload.php? How to use a helper inside template parser? - El Forum - 08-30-2009 [eluser]cavi1905[/eluser] Yes, they loaded in my controller... but they didn't working... ![]() How to use a helper inside template parser? - El Forum - 08-30-2009 [eluser]kulldox[/eluser] Strange. I've just loaded the Text helper in one of my controllers and then tried to use the word_limiter() method in it's view, and it works. Your problem is somewhere else. |