|
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 |
Praebul Smarty n00b
Joined: 07 Aug 2008 Posts: 2
|
Posted: Thu Aug 07, 2008 6:41 pm Post subject: Pass an array from a .tpl? |
|
|
I have scoured the documentation and attempted to find my answers through searches. However, I cannot find a way to pass an array from a .tpl file.
What I'm looking for is something along the lines of:
{buildFunction names=array(Bob,John,Doe,Billy)}
Thanks in advance! |
|
Back to top |
|
mohrt Administrator
Joined: 16 Apr 2003 Posts: 7368 Location: Lincoln Nebraska, USA
|
Posted: Thu Aug 07, 2008 6:49 pm Post subject: |
|
|
Smarty doesn't supply a way to build arrays directly in the template. If you are trying to do this, it is likely you are trying to do something that should be done in PHP, not in the template.
You could make yourself a function/modifier to build an array though. |
|
Back to top |
|
U.Tews Administrator
Joined: 22 Nov 2006 Posts: 5068 Location: Hamburg / Germany
|
|
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
|