Authentication with Smarty

From: Date: Wed, 05 Nov 2003 11:05:46 +0000
Subject: Authentication with Smarty
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-10500@lists.php.net to get a copy of this message
Hello, I've been writing php pages for a while, but just recently discovered pear and smarty. I still don't have my head quite around some of the ways of working php with smarty together; so please excuse me if this question is very simple. Basically I want to make a section of the site only available to registered users. Normally I would've just included a security.php page that checks if you're logged in and if not prompts you for a login/password. Now, when doing this with smarty how exactly would I go about it? My initial thought would be to call the security.php page from the template files that require it, and that in turn would display the login form (maybe using another template, say security.tpl). Is this correct or am I using smarty incorrectly? Vonleigh Simmons [vanlei] San Francisco, CA <www.illusionart.com/pi/>

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