Re: dynamic class loaders
| From: | Petar Nedyalkov | Date: | Wed, 20 Apr 2005 06:48:47 +0000 |
| Subject: | Re: dynamic class loaders | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-213474@lists.php.net to get a copy of this message | ||
On Wednesday 20 April 2005 06:28, php@electroteque.org wrote:
> Hi there i was wondering if there is such an extension available or
> possbility to have a dynamicclass loader extension which would use the
> request_uri as loading the class constructors ? I justthink building such a
> thing in php which is what i am doing too slow for each request and think
> itshould happen in the internals ? Let me know if its an insane idea.
Use the autoload extension.
http://www.php.net/manual/en/language.oop5.autoload.php
Have in mind the exception case when loading an unexisting class definition.
--
Cyberly yours,
Petar Nedyalkov
Devoted Orbitel Fan :-)
PGP ID: 7AE45436
PGP Public Key: http://bu.orbitel.bg/pgp/bu.asc
PGP Fingerprint: 7923 8D52 B145 02E8 6F63 8BDA 2D3F 7C0B 7AE4 5436
Attachment: [application/pgp-signature]
Attachment: [application/pgp-signature]