[PHPTAL] protecting html templates

2008-11-07 Thread Zbyněk Nevrlý
Hi, I am using PHPTAL for seperate business logic from presentation. So there are controllers, model classes and views (HTML templates). Problem is there views/*.html are accessible from direct calling through URL (I need to have views in public_html for Javascript and Ajax dependencies). Is there

[PHPTAL] variable syntax

2008-09-17 Thread Zbyněk Nevrlý
Hi, I have a several question about variables in PHPTAL templates: 1) How to put phptal variable to string. Here is code. I want to get variable nestedItem['m_obrazek'] to property onclick. ${nestedItem['m_obrazek']} is not working. span tal:repeat=item picturesList a href=#