Re: RE: [SMARTY] php variable within include
| From: | Rasmus Schultz | Date: | Sun, 08 Dec 2002 16:01:58 +0000 |
| Subject: | Re: RE: [SMARTY] php variable within include | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6693@lists.php.net to get a copy of this message | ||
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