smarty_cms_prefilter_precompilefunc
Posted: Thu Aug 14, 2008 8:54 pm
Hi,
I'm studying CMSMS to see how it works - particularly how it uses Smarty. I found a prefilter called prefilter_precompilefunc.php that Smarty loads. This has a function smarty_cms_prefilter_precompilefunc which is called before a template is compiled passing the source. The function has a case statement depending on the value of $smarty->_current_file before a ':'. The cases are
'content' ,'globalcontent', and 'template'. I'm using 1.4.1 and tracing entry to the function it does not seem ever to call with 'template' though it does call with 'tpl_body', 'tpl_top' and 'tpl_head'. So any module functions TemplatePreCompile don't get called. Is this a bug or is it a deliberate move?
Thanks for any help,
Peter
I'm studying CMSMS to see how it works - particularly how it uses Smarty. I found a prefilter called prefilter_precompilefunc.php that Smarty loads. This has a function smarty_cms_prefilter_precompilefunc which is called before a template is compiled passing the source. The function has a case statement depending on the value of $smarty->_current_file before a ':'. The cases are
'content' ,'globalcontent', and 'template'. I'm using 1.4.1 and tracing entry to the function it does not seem ever to call with 'template' though it does call with 'tpl_body', 'tpl_top' and 'tpl_head'. So any module functions TemplatePreCompile don't get called. Is this a bug or is it a deliberate move?
Thanks for any help,
Peter