Re: Re: some kind of "library loader"
| From: | Tamás Árpád | Date: | Wed, 03 Apr 2002 21:41:23 +0000 |
| Subject: | Re: Re: some kind of "library loader" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-91424@lists.php.net to get a copy of this message | ||
>Have you considered simply using require_once?
Yes, actually I'm using it now, but it's not enough.
>Also, you can find out if a class was defined by calling
>'class_exists()'. In this way you might save something.
>The best way thought is what Miguel was saying: load the files
>conditionally with a logic.
That's what I'm trying to do, but still searching for the logic.
But as I see, there's no better way of doing this other than checking if the
needed classes are defined before every instantiation.
Thanks for your help,
Arpi