|
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 |
anujkumargupta Smarty n00b
Joined: 10 Jul 2007 Posts: 1
|
Posted: Tue Jul 10, 2007 5:40 am Post subject: How can i print all value of an array |
|
|
hi
i m new in template engine
i wan to print all value which is store in a array
like
print_r() function
pls help me
Thank you in advance |
|
Back to top |
|
boots Administrator
Joined: 16 Apr 2003 Posts: 5611 Location: Toronto, Canada
|
Posted: Tue Jul 10, 2007 7:30 am Post subject: |
|
|
{$foo|@print_r}
The @ tells smarty to pass the entire array to the modifier rather than calling the modifier for each element of the array. Smarty also ships with a modifier that does similar to print_r(): {$foo|@debug_print_var}. You may also consider smarty's debug facility (which you can enable in-template by inserting a {debug} tag or you can enable by configuring the Smarty object appropriately -- see the docs for more info) |
|
Back to top |
|
ohelm Smarty n00b
Joined: 27 Apr 2011 Posts: 2
|
Posted: Wed Apr 27, 2011 5:16 pm Post subject: |
|
|
Thank you! |
|
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
|