RE: [SMARTY] prefilter

From: Date: Wed, 24 Sep 2003 22:34:13 +0000
Subject: RE: [SMARTY] prefilter
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10264@lists.php.net to get a copy of this message
I believe prefilters are only called when the template is compiled, it's purpose being to modify the source before it goes to the compiler. If you're looking for a way to easily check access roles across your site, using a prefilter probably isn't what you want (unless your prefilter inserts some code into to the template to do the access checking for you -- a bad idea). This sort of business logic would normally be handled by the PHP page invoking smarty. -mark ------------------------------- Mark Priatel Iolog Web Communications http://www.iolog.com -----Original Message----- From: Peter Billen [mailto:peter@clueless.be] Sent: Wednesday, September 24, 2003 6:04 PM To: smarty-general@lists.php.net Subject: [SMARTY] prefilter Hi, Short question: is a prefilter always called, even if there is no template to be compiled? So I can use it to call a function which tests if a specific user has access to the site? Thanks, Peter -- Smarty General Mailing List (http://smarty.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

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