|
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 |
rafiki Smarty n00b
Joined: 09 Sep 2003 Posts: 1
|
Posted: Tue Sep 09, 2003 2:16 pm Post subject: Can I use a var as attribute on object in templates |
|
|
Howdy
Let's see. I want to have following result in my template
This is working:
Code: | {$language->ERROR1} |
I have a variable:
I'd hoped this would work but it doesn't
Code: | {$language->$error} |
Can I do some kind of eval or what do I do?
Do you have any suggestions |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Tue Sep 09, 2003 2:52 pm Post subject: |
|
|
this is broken in 2.5.0, but it works in 2.6.0-RC1 and 2.4.2 |
|
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
|