And in php:
$tal=new PHPTAL('inc/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

Reply via email to