On Sat, 07 May 2011 14:19:26 +0100, Fernando Martins
<ferna...@cmartins.nl> wrote:
This is a real pity, because in the same way that people.zpt defines the
common elements of a web site, so would do the global variable people,
ie, keeping all the common data for all the pages. This limitation
(bug?) forces to include a call to peopleGet in all php/zpt pages.
Slots "see" variables from context (file) they are run in, not from
context where the macro is defined.
Instead of:
<div metal:define-slot="content_main"/>
you could use:
<div metal:use-macro="${callback}" />
and
--
regards, Kornel Lesiński
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal