Re: [SMARTY] Validate compiled template

Monte Ohrt <[email protected]>
Newsgroups gmane.comp.php.smarty.general
Message-ID <[email protected]>
Alexandre Cognard wrote:

>Hi,
>
>In smarty, when $smarty->compile_check is set to true, smarty check if the
>smarty compiled template is the lastest.
>
>But, does this function check if the compiled template change after the
>compilation ? (In case of direct modification on the compiled template, user
>or others ?)
>  
>

Yes, that is what compile_check is for. If the compiled file doesn't
exist, it gets compiled regardless of compile_check. After compilation
is done, it is only compared to the original template file time if
compile_check is on.

>And if not, does someone made something to test this and recompile correctly
>the generated template ? 
>
>Regards,
>Alexandre
>
>  
>

-- 
Smarty General Mailing List (http://smarty.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.