|
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 |
commando Smarty Rookie
Joined: 10 Aug 2004 Posts: 7
|
Posted: Tue Aug 10, 2004 12:06 pm Post subject: smarty array lookup in template |
|
|
This is probably a very simple question, but I can't seem to crack it by myself
I have an array that I want to display a single value out of in my tpl file. In php I would use:
$str = $messages['key'];
But if I put it in my tpl file I get a syntax error
<input type="text" name="name" value="{$message['key']}" />
Can anyone help? Many thanks for any suggestions. |
|
Back to top |
|
sage Smarty Rookie
Joined: 09 May 2004 Posts: 20 Location: London, UK
|
|
Back to top |
|
commando Smarty Rookie
Joined: 10 Aug 2004 Posts: 7
|
Posted: Tue Aug 10, 2004 7:38 pm Post subject: |
|
|
I knew it'd be something trivial like that, thanks sage!
Any thoughts on this design pattern? I posted to the wrong forum |
|
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
|