verifying template syntax when using resources
| From: | Scott Goodman | Date: | Mon, 28 Apr 2003 22:42:13 +0000 |
| Subject: | verifying template syntax when using resources | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-9410@lists.php.net to get a copy of this message | ||
Hi,
I have a PHP script which allows users to store smarty templates in a database. These templates are used to generate email auto-reponse type messages. I'm having some problems if the user doesn't format the template correctly. How can I easily verify that the syntax of the supplied template is correct? Currently the entire script dies when the syntax error is encountered.
Thanks,
Scott