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 4 matches
Smarty Forum Index
Author Message
  Topic: {include file="$array['block']['filename']"}
LoP

Replies: 4
Views: 15287

PostForum: Feature Requests   Posted: Sat Apr 19, 2003 5:05 pm   Subject: {include file="$array['block']['filename']"}
hehe :> cool Smile I've done it my way. this is what i've got


{foreach key=key item=zone from=$Zone}
{if ( isset ( $Block[$zone] ) ) }
{sect ...
  Topic: About loop in an associative array with {section}
LoP

Replies: 13
Views: 36802

PostForum: General   Posted: Sat Apr 19, 2003 4:59 pm   Subject: About loop in an associative array with {section}
yep, u surely prefer {foreach} Very Happy
  Topic: {include file="$array['block']['filename']"}
LoP

Replies: 4
Views: 15287

PostForum: Feature Requests   Posted: Sat Apr 19, 2003 11:30 am   Subject: {include file="$array['block']['filename']"}
yeah thanks i have already read that on smarty wiki's faq pages... but here comes another problem... maybe it is caused by bad design of array.


$block = array();
$zone = array(); ...
  Topic: {include file="$array['block']['filename']"}
LoP

Replies: 4
Views: 15287

PostForum: Feature Requests   Posted: Fri Apr 18, 2003 11:41 am   Subject: {include file="$array['block']['filename']"}
{include file="$block_zone"} <- this combination works pretty fine, but when in a section, i'd like to include other template file for every object in a loop. It would be very useful to use smarty ...
 
Page 1 of 1
All times are GMT
Jump to:  


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