Bit silly of me. I discovered after hitting "send" that I had, in fact,
missed something and the PHP variables we're not properly set for passing to
False alarm, folks!!
2009/1/2 Alister Cameron <alister.came...@cameroncreative.com>
> In PHP it's just values in an array (or nested arrays). Created as:
> $tpl = array(
> "nesting" => $nesting
> $template->set('vanilla', $tpl);
> and so forth.
> Does that help?
> 2009/1/2 Maciej Łebkowski <m.lebkow...@gmail.com>
>> On Fri, Jan 2, 2009 at 08:47, Alister Cameron
>> <alister.came...@cameroncreative.com> wrote:
>> > Now, can someone explain to me why the first line outputs the value of
>> > vanilla/nesting correctly, but the next line throws a PHPTAL error,
>> > 'Unable to find path nst in current scope'.
>> Because the error message is not about vanilla/nesting, but about nst var.
>> So - the condition tag is evaluated first.
>> > Also, the very fact that I have tried to define a special variable (nst)
>> > that I can't get the PHP condition to recognise the value of
>> > vanilla/nesting.
>> There is no such thing as vanilla/nesting in php. There could
>> be vanilla->nesting or vanilla->nesting() or vanilla[nesting].
>> Which one of those is vanilla/nesting?
>> Maciej Łebkowski, http://lebkowski.info/kontakt.php
>> PHPTAL mailing list
> Alister Cameron
> Managing Director
> Cameron Creative Pty Ltd
> Creative, Strategic, Innovative... never boring!
Cameron Creative Pty Ltd
Creative, Strategic, Innovative... never boring!
PHPTAL mailing list