|
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 |
conrad_escape Smarty n00b
Joined: 19 Oct 2004 Posts: 1
|
Posted: Sat Sep 24, 2005 9:52 pm Post subject: maybe you could... |
|
|
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 |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
|
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
|