Re: [SMARTY] use compiled templates only
| From: | messju mohr | Date: | Fri, 15 Oct 2004 07:49:57 +0000 |
| Subject: | Re: [SMARTY] use compiled templates only | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11892@lists.php.net to get a copy of this message | ||
On Fri, Oct 15, 2004 at 10:34:31AM +0300, Mario Lopez wrote:
> Hi!
>
> Is there a way to tell smarty not to try to parse templates from
> smarty/templates
> but use the compiled version only (from smarty/compile)
$smarty->compile_check = false;
HTH
messju
> this is because when delivering product to customer it is being encoded by
> zend
> and since it encodes templates, smarty is no more able to parse them,
> encoded compiled version however work just fine!
>
> So the idea here is to prepare all template compiled versions and tell
> smarty
> to use only them without bothering abuot smarty/templates directory at all
> since
> it is not being delivered to customer and will be empty.
>
> Thanks for help!