Re: [PHPTAL] protecting html templates
On 07-11-2008 at 09:56:22 Krzysztof Sikorski [EMAIL PROTECTED] wrote: tal:block omit-tag=?php exit; ?/tal:block Sorry, it should be tal:block omit-tag=1 replace=?php exit; ?/tal:block. BTW: omit-tag is never needed on tal:block, and it's redundant with replace. -- regards, Kornel ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal
[PHPTAL] protecting html templates
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 any common practices to protect those *.html from unauthorized users? Maybe parsing this templates like php and at the beginning of each files have something like that: ?php session_start(); if (!$auth-isAuthorized) { redirect to login form here} ? Is possible to do that way? thanks a lot. ___ PHPTAL mailing list PHPTAL@lists.motion-twin.com http://lists.motion-twin.com/mailman/listinfo/phptal