Re: Two more suggestions: $this->caching and prefilters
| From: | Andrei Zmievski | Date: | Fri, 10 Aug 2001 16:48:23 +0000 |
| Subject: | Re: Two more suggestions: $this->caching and prefilters | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-1330@lists.php.net to get a copy of this message | ||
On Fri, 10 Aug 2001, Hans-Peter Oeri wrote:
> Hi!
>
> Just came across two more ideas:
>
> $this->caching:
> IF I give a cache_id, the chance I would like to cache are high, no? So why not
> let the presence of a non-null cache_id trigger the caching instead of a
> separate attribute? OK, I could like to disable caching for debugging purposes
> or so... But even then some sort of disable_caching would seem more appropriate, no?
Makes sense.
> prefilters:
> Currently, prefilters do not have access to the attributes set (variables et
> al). However, some more sophisticated filters probably need them. In the current
> situation, I have to store those values in some global vars... not really nice.
> Why not have a reference to smarty as the second argument?
So does this.
-Andrei
"In this age, which believes that there is a short cut to everything,
the greatest lesson to be learned is that the most difficult way is, in
the long run, the easiest."
-Henry Miller, The Books in My Life