CodeIgniter Forums
problem? with parse class and character_limiter() - 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: problem? with parse class and character_limiter() (/showthread.php?tid=51961)



problem? with parse class and character_limiter() - El Forum - 05-24-2012

[eluser]Unknown[/eluser]
Hello guys

i am kinda a new with this framework, and i want to know if is possible to use character_limiter method with the parser class.

Code:
{array}
<p>{title}</p>
<p>&lt;?= character_limiter({description},30)?&gt;</p>
{/array}

in my code doesn't work ...

i guess the parser class is not ready yet and the method yes

sory for my english ... i from argentina.

i hope you guys can understand

Thx !!!



problem? with parse class and character_limiter() - El Forum - 05-24-2012

[eluser]CroNiX[/eluser]
You'd have to do that to the data before passing it to your view. You can't use the placeholders as if they were php variables.