Hi all,
I've been using PHPTAL for a while now and I really like it.
Now I have a problem, how could I call a php function / method out and
not output it's return value.
I want to call zend view helpers (like headTitle) from views instead of
controllers.
I've tried something this (helper is like $this, the view object)
<span tal:omit-tag="php:helper.headTitle('Index')" />
This works, but is being called twice.
<tal:block condition="php:helper.headTitle('Index')"></tal:block>
This works just fine.
tal:replace and tal:content output the content.
So is the tal:block condition version cool and the best solution out
there, or am I missing something.
Thanks in advance,
Miko.
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal