Two more suggestions: $this->caching and prefilters
| From: | Hans-Peter Oeri | Date: | Fri, 10 Aug 2001 16:35:06 +0000 |
| Subject: | Two more suggestions: $this->caching and prefilters | ||
| Groups: | php.smarty.general | ||
| Request: | Send a blank email to php-smarty-general+get-1329@lists.php.net to get a copy of this message | ||
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?
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?
Don't conform!
IkKampfCaspar75