[prev in list] [next in list] [prev in thread] [next in thread] 

List:       smarty-general
Subject:    [smarty] Can the include statement be dynamically decided?
From:       "Francois Dumais" <f_dumais () videotron ! ca>
Date:       2001-12-30 5:49:10
[Download RAW message or body]

Hi all,

I wanted to make a generic "wrapper/includer" using the include =
statement in the templates.  But now I am wandering if it is realistic.

Can an include statement be placed within a control loop and the =
filename of the template to be included be decided dynamically upon =
looping?

Thank you.

Francois Dumais


---
You are currently subscribed to smarty as: smarty@progressive-comp.com
To unsubscribe send a blank email to leave-smarty-700385W@lists.ispi.net
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/

[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4207.2601" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I wanted to make a generic "wrapper/includer" using 
the include statement in the templates.&nbsp; But now I am wandering if it is 
realistic.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Can an include statement be placed within a control 
loop and the filename of the template to be included&nbsp;be decided dynamically 
upon looping?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thank you.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Francois Dumais</FONT></DIV>
---<BR>
You are currently subscribed to smarty as: smarty@progressive-comp.com<BR>
To unsubscribe send a blank email to leave-smarty-700385W@lists.ispi.net<BR>
Visit Smarty's homepage at http://www.phpinsider.com/php/code/Smarty/
</BODY></HTML>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic