Compiling templates

From: Date: Tue, 15 Apr 2003 15:13:55 +0000
Subject: Compiling templates
Groups: php.smarty.dev 
Request: Send a blank email to php-smarty-dev+get-1159@lists.php.net to get a copy of this message
Hi all, I'm having the following problem and would like to get some ideas: The application we are building is multilanguage and we use a prefilter to translate strings. Some screens are very very big and have a lot of strings so compiling takes a lot of time/resources, once the template is compiled everything runs fast and smooth. The problem is that users can't won't understand that they have to increase the maximum memory or execution time for PHP to compile strings so the solution is to ship the application with the templates already compiled. Is there ANY practical way to make Smarty compile all the templates? Something like $smarty->compile_all_templates($compile_id); Other comments or suggestions for this problem? TIA. Luis.

« previous php.smarty.dev (#1159) next »