Re: [SMARTY] Template Extentions

From: Date: Thu, 11 Dec 2003 22:10:59 +0000
Subject: Re: [SMARTY] Template Extentions
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10674@lists.php.net to get a copy of this message
> 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

« previous php.smarty.general (#10674) next »