|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sunilkumarpkerala Smarty n00b
Joined: 24 Nov 2011 Posts: 1
|
Posted: Thu Nov 24, 2011 5:16 am Post subject: How can I write new commands to smarty ? |
|
|
I would like to write a function to find the length of a variable in smarty .
How can I do that ? |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Fri Nov 25, 2011 12:08 am Post subject: |
|
|
you probably already can:
{$var|count}
{$var|strlen}
Or, read the manual about writing a plugin. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|