RE: RE: [SMARTY] RE: [PEAR] Pear::Auth and Smarty
| From: | Simon H | Date: | Tue, 17 Dec 2002 10:19:59 +0000 |
| Subject: | RE: RE: [SMARTY] RE: [PEAR] Pear::Auth and Smarty | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6859@lists.php.net to get a copy of this message | ||
> >
> > Firstly, I would prefer to not have the $smarty->display within the
> > myAuth class, but rather keep it within my index.php. Is this
> > possible, or even recommended?
Any thoughts on this?
> >
> > Also, why do you need to recycle the Smarty objects anyway? My
> > knowledge of OO PHP is a bit lacking!
>
> My knowledge is not that great either, it becomes useful to
> recycle smarty objects when you have nested levels, like a
> function which uses smarty, then another one and so on. It
> saves you some overhead to recycle objects.
This is kinda what I'm asking below. Is it necessary to recycle, which
I gather its not. If not then how can I use myAuth without myAuth
without the recycler? That's why I was wondering about extending the
Smarty class with myAuth rather than extending the Auth class. But the
above statement probably shows my ignorance of how PHP classes and OO
PHP work
>
> > Last question...would it make more sense to extend the Smarty
> > Class with
> > myAuth (or a version of)?
>
> I don't understand, you want to know if you should extend
> myAuth from Auth or Smarty ?
As above.
Thanks
Simon H