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: How to create an array?

Replies: 0
Views: 2125

PostForum: General   Posted: Thu Aug 28, 2003 4:04 pm   Subject: How to create an array?
I'm embarrased, but how can I create an array (smarty macro language, not php!)?

I want to do something like

{html_table tr_attr=array('bgcolor=#0000ff','bgcolor=#ff0000') loop=$fo ...
  Topic: {html_table} and assoc. arrays

Replies: 1
Views: 6551

PostForum: Bugs   Posted: Fri Jul 11, 2003 4:01 pm   Subject: test case
I don't think this is limited to associative arrays. I have the same problems with Smarty 2.5.0 and php 4.3.2 and I think 4.1.x also.

Here's a test case. Template first:

templates/scale.tpl ...
  Topic: Newby question: architecture

Replies: 0
Views: 2767

PostForum: General   Posted: Wed Jul 09, 2003 1:28 am   Subject: Newby question: architecture
My question is on how to structure templates. Specifically, I am trying to build "widgets" or "components". Here's a concrete example, I would like to build some fancy tables, with who knows what ki ...
Page 1 of 1
All times are GMT
Jump to:  

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