On 06-01-2009 at 14:03:05 Torsten Hinze <info4hide...@gmx.de> wrote:

<ul class="public"
tal:define="navItems php: getNavItems($sosContext);">
<li tal:repeat="item navItems">

Cant you see any error?

After i wrote this i have see the error. I have used sosContext with
a leading $. This is wrong in PHPTAL. A classic pitfall.

I agree that syntax of php: is tricky - it's a hybrid of Python, TAL and PHP.

In this case you can avoid it, if you make sosContext an object (or array at 
least) change template to:

tal:define="navItems sosContext/getNavItems"

regards, Kornel

PHPTAL mailing list

Reply via email to