Re: CVS flat directory structure
| From: | Olivier Guilyardi | Date: | Fri, 09 Jun 2006 11:27:46 +0000 |
| Subject: | Re: CVS flat directory structure | ||
| References: | 1 2 3 4 5 6 7 8 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24304@lists.php.net to get a copy of this message | ||
Mark Wiesemann wrote:
Olivier Guilyardi wrote:In DB_Table/ there's DB/, then DB/Table.php and DB/Table/ That seems wrong to me according to the PEAR group document you mentionned. It says The_Package_Name must contain a directory named Name/, not The/Package/Name/. In the mentionned Cache_Lite repository, there's Lite.php and Lite/, not Cache/Lite.php and Cache/Lite/.Actually, in MDB2/ there's MDB2.php and another MDB2/. That's exactly as DBDO : in DB_DataObject there's DataObject.php and DataObject/The difference is that in the second case the DB directory is missing. Have a look at DB_Table, the structure there is following the standard.
Agreed Regards, -- ogNo, if you checkout MDB2/ you can not simply require_once('MDB2.php'), because MDB2.php is in MDB2/ instead of PEAR root, and all drivers are in MDB2/MDB2/Right. But that's true for all packages following the mentioned standard. As it is written somewhere on pear.php.net, the CVS structure is not meant for direct usage. That's especially true when people use package.xml feature like Lukas described them.