Re: Compile time
| From: | Tom Sommer | Date: | Thu, 20 Feb 2003 22:39:10 +0000 |
| Subject: | Re: Compile time | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8065@lists.php.net to get a copy of this message | ||
Ok ok, I've done all research now...
When you have
function myCompilerFunction($arg, &$smarty)
{
$smarty->assign('this','that');
}
and do a
register_compiler_function('runCompileFunction','myCompilerFunction');
you _HAVE_ to insert {runCompileFunction} inside the template... which is
plain stupid... there has to be some way to make an overall general compile
function... but ofcause I can add {runCompileFunction} to my template, it
just doesn't seem that bloody clever and pretty useless
--
Tom Sommer, denmark
www.tsn.dk - www.dreamcoder.dk