Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Undocumented feature? class="something" in custom

 
Post new topic   Reply to topic    Smarty Forum Index -> Tips and Tricks
View previous topic :: View next topic  
Author Message
geoB
Smarty Regular


Joined: 09 Sep 2010
Posts: 46

PostPosted: Wed Dec 14, 2011 12:49 am    Post subject: Undocumented feature? class="something" in custom Reply with quote

I may have stumbled on an undocumented feature of custom functions. I wanted to apply a style to functions like
Code:
{html_options}
and discovered to my amazement is that I just needed to add the clause. So something like
Code:
{html_options class="something" ...}
works just fine.

Thanks!

George
Back to top
View user's profile Send private message
mohrt
Administrator


Joined: 16 Apr 2003
Posts: 7255
Location: Lincoln Nebraska, USA

PostPosted: Wed Dec 14, 2011 2:38 am    Post subject: Reply with quote

http://www.smarty.net/docs/en/language.function.html.options.tpl

Quote:
All parameters that are not in the list above are printed as name/value-pairs inside the <select> tag. They are ignored if the optional name is not given.
Back to top
View user's profile Send private message Visit poster's website
geoB
Smarty Regular


Joined: 09 Sep 2010
Posts: 46

PostPosted: Wed Dec 14, 2011 3:15 am    Post subject: Reply with quote

I guess I "discovered" the meaning of
Quote:
All parameters that are not in the list above are printed as name/value-pairs inside the <select> tag.


g
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Tips and Tricks All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP