Re: [SMARTY] my second plugin! :)
| From: | Monte Ohrt | Date: | Wed, 05 Jun 2002 02:05:04 +0000 |
| Subject: | Re: [SMARTY] my second plugin! :) | ||
| References: | 1 2 3 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4596@lists.php.net to get a copy of this message | ||
Wow, how easy. Why even bother using a template? :-)
Rasmus Schultz wrote:
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??