Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Search found 3 matches
Smarty Forum Index
Author Message
  Topic: How to create an array?
pdxchris

Replies: 0
Views: 3288

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
pdxchris

Replies: 1
Views: 9167

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
pdxchris

Replies: 0
Views: 4071

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