Re: [SMARTY] Template Extentions
| From: | Alex | Date: | Fri, 12 Dec 2003 03:30:10 +0000 |
| Subject: | Re: [SMARTY] Template Extentions | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-10675@lists.php.net to get a copy of this message | ||
Why not just lock the directory via .htaccess?
regards,
alex
Nagger wrote:
Im just trying to look forward, where other template designers modify my templates.Some month ago I wrote: -------------------------------- Just a small tip: If your template files are within the document-root (they shouldn't, but very often they are) name them *.php and add a first line similar to this: {* nothing *<?php echo '}';exit; ?> *} It's just a smarty comment, but if one will access this file direct, PHP will only display "{* nothing *}" and then stop the execution. So nobody can read your source template file from outside. In most editors syntax highlighting of *.php files also highlights html-tags. -------------------------------- bye...Nagger