RE: RE: [SMARTY] php variable within include

From: Date: Sun, 08 Dec 2002 18:51:34 +0000
Subject: RE: RE: [SMARTY] php variable within include
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-6696@lists.php.net to get a copy of this message
Weird, I can make it work like: {include file = "$style.css"} and {include file = $style.".css"} but not like {include file=$style.css} -----Original Message----- From: Rasmus Schultz [mailto:m@mindplay.dk] Sent: Sunday, December 08, 2002 8:01 AM To: Smarty List Subject: Re: RE: [SMARTY] php variable within include that, for some reason, never works for me?? I can't stick variables together inside a smarty tag with the "." operator - I need to do the whole thing inside the quotation marks: {include file = "$style.css"} like so .. --- At 2002-12-08, 09:57:00, Eduardo <jemf@softhome.net> wrote: >KK>Is there a way to do the following without coming up with a Smarty >error? >KK>{include file = "{$style}.css"} > >I don't know if this is the best way but this how I do it: > >{include file = $style.".css"} > > > > >-- >Smarty General Mailing List (http://smarty.php.net/) >To unsubscribe, visit: http://www.php.net/unsub.php -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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