RE: [SMARTY] {include file=...} problem

From: Date: Wed, 03 Jul 2002 15:19:33 +0000
Subject: RE: [SMARTY] {include file=...} problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-5178@lists.php.net to get a copy of this message
Thanks Monte and Eric ! :) My compliments for Smarty! Peter -----Original Message----- From: Monte Ohrt [mailto:monte@ispi.net] Sent: woensdag 3 juli 2002 17:14 To: peter@clueless.be Cc: smarty-general@lists.php.net Subject: Re: [SMARTY] {include file=...} problem {include file=$page} Peter Billen wrote: > Hi all, > > Is it possible to make the include files also dynamical? > > I'd like to use something like: {include file={$page}}, but then it > gives a parse error in my compiled template file. What am I doing wrong? > > My site is divided into 3 groups: above: the header (static), left side: > the menu (static), right side: the content (dynamic). > For every other content, I'd like to use another .tpl file, so I can > easily include them with commands such as: > $t->assign("page","forum-contents.html") .. > $t->assign("page","news.html") . > > And my second question: is this a good solution to make dynamic blocks > in my site? (with including other template files) > > Thanks a lot for this support, > > Peter > > PS: sorry for my bad English :\ > -- Monte Ohrt <monte@ispi.net> Director of Technology, ispi Inc. -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.smarty.general (#5178) next »