And in php:
$tal=new PHPTAL('inc/main.html');
$tal->setTemplate('pages/forum.html');
$tal->setTemplate('pages/forum/main.html');
And it doesn't work - there is only forum, without "inc/main"
template :/ What I done wrong?
You can't set more than one template at a time. Call to setTemplate()
causes PHPTAL to "forget" template set previously. You need to invoke
$tal->execute() before changing templates (in your case it may not
give desired result) or use external macros to execute other templates.
--
regards, Kornel
_______________________________________________
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal