[PHPTAL] my own keyword handler
Kornel Lesiński
kornel at aardvarkmedia.co.uk
Wed Nov 5 11:09:10 CET 2008
On 04-11-2008 at 18:45:10 Christian Welzel <gawain at camlann.de> wrote:
> Now it generates this:
> Core_Helper_LinkHelper::getInstance()->createUrl('folder',array('goto'=>$ctx->{phptal_path($ctx->ud,
> 'id')},))
>
> what leads to the runtime error: Unable to find path 0 in current scope.
> "0" is the value of ${ud/id}.
Yes, because path "${ud/id}" is supposed to do exactly that. If ud/id does
not evaluate to a variable name, then you should use "ud/id".
Compare <p tal:content="ud/id">, <p tal:content="${'ud'}/${'id'}"> and <p
tal:content="${ud/id}">.
--
regards, Kornel
More information about the PHPTAL
mailing list