RE: [SMARTY] prefilter

From: Date: Thu, 25 Sep 2003 12:41:39 +0000
Subject: RE: [SMARTY] prefilter
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10267@lists.php.net to get a copy of this message
Oki, thanks for your input. If a user has access to the site, some vars should get assigned automatically, I thought using a prefilter was good way to do this. Peter -----Original Message----- From: Mark Priatel [mailto:mpriatel@rogers.com] Sent: donderdag 25 september 2003 0:34 To: 'Peter Billen'; smarty-general@lists.php.net Subject: RE: [SMARTY] prefilter 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 (#10267) next »