RE: [SMARTY] {include} problem

From: Date: Thu, 20 Feb 2003 05:08:37 +0000
Subject: RE: [SMARTY] {include} problem
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-7973@lists.php.net to get a copy of this message
So, how do I do this? {include file="$template/$page.tpl"} It is very important to my application to be able to do such a thing.. Steve -----Original Message----- From: Monte Ohrt [mailto:monte@ispi.net] Sent: Tuesday, February 18, 2003 8:11 AM To: Ferdinand Beyer Cc: Smarty General Subject: Re: [SMARTY] {include} problem Ah, now that full variable syntax is supported within quoted text it will do that. Hmm, a good thing or not? On Tue, 2003-02-18 at 09:16, Ferdinand Beyer wrote: > On 17 Feb 2003 at 23:02, Monte Ohrt wrote: > > > That happened to work, variable catenation has never been supported. Do > > this instead: > > > > "$template/$page.tpl" > > This won't work since "$page.tpl" assumes an associative array: > $this->_tpl_vars['page']['tpl']... :-) > > -- > Ferdinand Beyer > <fbeyer@clickhand.de> -- Monte Ohrt <monte@ispi.net> -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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