Smarty templates syntax validation
| From: | Łukasz 'nostra' Wojciechowski | Date: | Tue, 19 Sep 2006 16:32:43 +0000 |
| Subject: | Smarty templates syntax validation | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-13482@lists.php.net to get a copy of this message | ||
Hello,
I'm using Smarty for a long time now for web templates. Now I started
using it for compiling e-mail templates. Now I want to give access to
user to change e-mail templates. And here comes the problem. I want to
validate template syntax before allowing its change. It's quite with
file: resource (e.g. $smarty->fetch("file:some.file.tpl"); but can't
make it working with database resource. I tried to make it working with
SmartyCompiler->_compile_file but it appears that it doesn't recognize
resource tag (e.g. "db:some.name");
I would appreciate some help.
Regards,
--
Łukasz "nostra" Wojciechowski
gg.1028640 * icq.23059512