passing several $vars to template

Christian Robottom Reis kiko at async.com.br
Tue May 31 19:27:05 UTC 2005


On Tue, May 31, 2005 at 03:18:35PM -0400, Martin d'Anjou wrote:
> $template->process("bug/create/created_tree.html.tmpl", $vars)
> 
> Can someone show me how to pass multiple bugs through $vars to the 
> template?

Just have $vars hold a member which is an array of Bug objects, instead
of data on a single bug. I believe summarize_time.cgi does that.

Take care,
--
Christian Robottom Reis | http://async.com.br/~kiko/ | [+55 16] 3376 0125



More information about the developers mailing list