Re: [SMARTY] my second plugin! :)
| From: | Ben Godfrey | Date: | Wed, 05 Jun 2002 01:56:58 +0000 |
| Subject: | Re: [SMARTY] my second plugin! :) | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-4595@lists.php.net to get a copy of this message | ||
On Wednesday, June 5, 2002, at 02:52 AM, Rasmus Schultz wrote:
So a designer can redesign it while your developer is on holiday? So your developer can implement a totally different password backend without even having to call the designer once? That's the key to Smarty's usefulness, the separation of roles. BenAgain, 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??