php variable within include
| From: | Kerry Kobashi | Date: | Sun, 08 Dec 2002 15:27:31 +0000 |
| Subject: | php variable within include | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-6686@lists.php.net to get a copy of this message | ||
Is there a way to do the following without coming up with a Smarty error?
{include file = "{$style}.css"}
Fatal error: Smarty: [in myTemplate.tpl line 16]: syntax error: invalid
attribute name - '$style' in C:\Program Files\Apache
Group\Apache2\htdocs\MySite\Smarty\Smarty_Compiler.class.php on line 1398
Kerry Kobashi
Kobashi Computing