RE: 1.4.0b1
| From: | Andrei Zmievski | Date: | Mon, 30 Apr 2001 16:10:54 +0000 |
| Subject: | RE: 1.4.0b1 | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-650@lists.php.net to get a copy of this message | ||
On Sat, 28 Apr 2001, Andreas Aderhold wrote:
> Hi Monte,
>
> > Has anyone tried 1.4.0b1? Any problems?
> Yep. Using it here. No major problems. The prefilters are working fine -
> great stuff. But I've a small problem using the filters in a subclass of
> smarty. I use the subclass to tweak some settings, without touching the
> Smarty Files. But registering the filtes inside the class does not work
> (neither with '->' nor with '::'):
>
> class Template extends Smarty {
> ...
> ...
> function Template() {
> $this->Smarty();
> $this->register_prefilter("$this->_filterComments") // or
> $this->register_prefilter("Template::_filterComments")
> }
>
> function _filterComments() {
> ....
> }
>
> }
Currently, none of the functions implementing prefilters, modifiers,
custom functions and so on can be class methods. We might want to think
about it in the future.
-Andrei
"The secret of flying is to throw yourself
at the ground, and miss." -- Douglas Adams