|
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 |
edduvs Smarty Rookie
Joined: 27 Jun 2011 Posts: 10
|
Posted: Thu Jul 28, 2011 5:46 pm Post subject: dinamic var from array cant be accessed |
|
|
I have an array $village and a $build.dbname from a foreach, i can't access $village.$build.dbname, i wouldn't like to assign another var for each and every building.. is there another way ? |
|
Back to top |
|
edduvs Smarty Rookie
Joined: 27 Jun 2011 Posts: 10
|
Posted: Thu Jul 28, 2011 6:02 pm Post subject: |
|
|
If you have another way, it's ok, until then, i chose {assign "level" level($build.dbname,$village.id) nocache} |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
|
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
|