Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: Setting an object variable
ieure

Replies: 1
Views: 3294

PostForum: General   Posted: Fri Nov 21, 2003 12:09 am   Subject: Setting an object variable
I'm trying to set an object's variable from my Smarty template. E.g.

class Foo {
var $bar;
}


How can I set $bar inside my template? It doesn't look like Smarty can do basic variab ...
  Topic: Creating an array in Smarty
ieure

Replies: 17
Views: 135844

PostForum: Smarty Development   Posted: Wed Oct 15, 2003 11:08 pm   Subject: Creating an array in Smarty
For a heated discussion, try Assign to arraysNB: includes Messju's simple append suggestion

Thank you, this is perfect.
  Topic: Creating an array in Smarty
ieure

Replies: 17
Views: 135844

PostForum: Smarty Development   Posted: Tue Oct 14, 2003 10:32 pm   Subject: Creating an array in Smarty
Hi there. I'm using Smarty for a project, and I need to create an array inside a Smarty template, for processing by another template.

e.g.
{include file="Foo.tpl" arg=array("one", "two", "three")} ...
 
Page 1 of 1
All times are GMT
Jump to:  


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP