Re: [SMARTY] my second plugin! :)

From: Date: Wed, 05 Jun 2002 01:52:55 +0000
Subject: Re: [SMARTY] my second plugin! :)
References: 1 2  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-4594@lists.php.net to get a copy of this message
> Again, mixing your business logic into the template... not a good > practice. Let the application handle sending E-mail. But do use a > template to format it! Let's say I wanted to set up a "retrieve your password" page - the user submits his email address, and the MySQL function looks up the users password in a database - the sendmail function then emails the password to the user. Such a small and simple function can now be done in a single template, nice and simple ... why would you want to break that into atoms??

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