Re[6]: AW: [SMARTY] Paging
| From: | Bertrand DUNOGIER | Date: | Thu, 12 Dec 2002 14:15:51 +0000 |
| Subject: | Re[6]: AW: [SMARTY] Paging | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6763@lists.php.net to get a copy of this message | ||
>> {return_paged_results query="delete * from customer"}
BP> fair point, i can see how the designer is capable of damaging the
BP> database. but this seems like a malicious usage of the plugin.
BP> the *intended* method of use would be to use a query supplied by the
BP> php.
YOu should read a little the page Andrei has written about "Why use Smarty". He
gives some sound sample of what real layout / code separation is. And giving a
SQL query as a parameter in the template is definitely a very good sample of
what separation is NOT :)
Bertrand