Re: [SMARTY] Validate compiled template

From: Date: Wed, 22 Jun 2005 19:00:59 +0000
Subject: Re: [SMARTY] Validate compiled template
References: 1  Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-12731@lists.php.net to get a copy of this message
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


« previous php.smarty.general (#12731) next »