RE: caching / insert question
| From: | Monte Ohrt | Date: | Sat, 16 Feb 2002 07:31:25 +0000 |
| Subject: | RE: caching / insert question | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-2694@lists.php.net to get a copy of this message | ||
One way to handle this is to pass a template file to the insert function:
{insert name=myfunc file="path/to/mytemplate.tpl"}
Then in the insert function, use an instance of Smarty to display the
template.
> -----Original Message-----
> From: Steve [mailto:steve@iwsys.com]
> Sent: Friday, February 15, 2002 10:29 PM
> To: smarty@lists.ispi.net
> Subject: [smarty] RE: caching / insert question
>
>
> Thanks for the help on this. I have the URL string being parsed with the
> cache working!
>
> Now the other question / issue is in reference to the insert()
> function. I
> wrote one
> as described in the docs. The problem I see here is now I am
> having to put
> html in the insert function in order to control the dynamic content and
> prevent it from being cached to disk.
>
> I assume my problem is I don't understand the programming ideology behind
> this behavior. I love Smarty because I have ZERO layout code in
> my logic/db
> code. This looks like if I want to use the caching features, I would have
> to put html in the logic. I guess the other option is to not use the
> caching.
>
> Steve
>
>
> ---
> You are currently subscribed to smarty as: monte@ispi.net
> To unsubscribe send a blank email to $subst('Email.Unsub')
> Visit Smarty's homepage at
> http://www.phpinsider.com/php/code/Smarty/