Smarty templates syntax validation
[email protected] (Łukasz 'nostra' Wojciechowski) Tue, 19 Sep 2006 18:32:43 +0200
| Newsgroups | php.smarty.general |
|---|---|
| Message-ID | <[email protected]> |
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