Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

maybe you could...

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests
View previous topic :: View next topic  
Author Message
conrad_escape
Smarty n00b


Joined: 19 Oct 2004
Posts: 1

PostPosted: Sat Sep 24, 2005 9:52 pm    Post subject: maybe you could... Reply with quote

have this done pls :
{$array."Key with space"}
or
{$array["Key with space"]}
or
{$array.[Key with space]}



I currently have a plugin function
{getkey from="form" key="Key Name"}

function smarty_function_getkey($var, &$smarty)
{
return $smarty->_tpl_vars[$var['from']][$var['key']];
}

{foreach} doing keys ok, but sometimes i need exact key from array...
and the above solution is but it's kinda lame ....




Thanks
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
boots
Administrator


Joined: 16 Apr 2003
Posts: 5611
Location: Toronto, Canada

PostPosted: Wed Jul 12, 2006 11:58 pm    Post subject: Reply with quote

maybe the modifier discussed here will suit you: http://www.phpinsider.com/smarty-forum/viewtopic.php?p=31461
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Feature Requests 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