Re: [SMARTY] smarty variables used in {include...}
| From: | Monte Ohrt | Date: | Wed, 19 Feb 2003 14:27:14 +0000 |
| Subject: | Re: [SMARTY] smarty variables used in {include...} | ||
| References: | 1 | Groups: | php.smarty.dev php.smarty.general |
| Request: | Send a blank email to php-smarty-dev+get-731@lists.php.net to get a copy of this message | ||
That is because variables such as "$foo.bar.foobar" are now valid within
quotes, just like {$foo.bar.foobar} Should this be backed out and only
allow "$foobar" syntax? We had a complaint that "foobar[0]" didn't work,
so full syntax support was enabled.
Monte
On Tue, 2003-02-18 at 20:56, Tom Rochester wrote:
> Hi,
>
> I was previously using Smarty 4.3.0 and have a standard 'page' that I
> want to include different modules in, which previously worked like this:
>
> {include file="$inline.inline.tpl"}
>
> when I upgrade to the latest version of Smarty 4.4.* I get the following
> error:
>
>
> *Warning*: Smarty error: unable to read template resource: ".inline.tpl"
> in */var/www/Smarty/Smarty.class.php* on line *999*
>
> (inline _is_ being assigned)
>
> I obviously cannot use variables in this manner anymore. Is there any
> way of fixing this problem without rewriting all of my scripts?
>
> Thanks,
>
> Tom
--
Monte Ohrt <monte@ispi.net>