How to get the name of a compiled template?

From: Date: Wed, 17 Nov 2004 01:22:39 +0000
Subject: How to get the name of a compiled template?
Groups: php.smarty.general 
Request: Send a blank email to php-smarty-general+get-11969@lists.php.net to get a copy of this message
Hi all, I'm working on a multilingual site and need the templates to be compiled for each language. This is not a problem, as I set the $compile_id property to the language code and all get done. To replace the strings in the template, I use a prefilter. Now, I wan't to check if the compiled template is more recent thant the language file used and if not, compile again the template. So, I need some method to retrieve the compiled name for the template, taking into consideration the $smarty->compile_id property did not found it in the manual. Calling _get_auto_filename($this->compile_dir, $resource_name, $this->compile_id) . '.php'; returns the name I want, but because it is a private function cannot be sure it will work in future releases. Any coment or sugestion will be welcome. Regards, Jordi.

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