Re: Re: PEAR2 Coding standards, Autoloading and Namespaces
| From: | Christian Weiske | Date: | Sat, 12 Apr 2008 07:31:52 +0000 |
| Subject: | Re: Re: PEAR2 Coding standards, Autoloading and Namespaces | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-49758@lists.php.net to get a copy of this message | ||
Jeff,
Any idea?
> I'd like to think outside the box, if you could tell me the solution
> for following problem:
> - Package MDB3
> - Driver packages MDB3_Sqlite, MDB3_MySql etc
>
> How do you load those drivers? Currently it was as easy as checking
> the existence of $path/MDB2/Driver/Sqlite.php and include the file
> with that name.
> If every package uses his own namespace, how do you load such a
> driver? Where do you store it in the file system so that it can be
> easily found?
>
> Making exceptions to the packagename->namespace rule would work, but
> defeat the purpose of the whole idea.
--
Regards/Mit freundlichen Grüßen
Christian Weiske
Attachment: [application/pgp-signature] signature.asc
Attachment: [application/pgp-signature] signature.asc