Re: CVS flat directory structure

From: Date: Fri, 09 Jun 2006 10:10:54 +0000
Subject: Re: CVS flat directory structure
References: 1 2 3 4 5 6  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-24300@lists.php.net to get a copy of this message
Mark Wiesemann wrote:
Olivier Guilyardi wrote:
The directory structure seems correct to me. DataObject.php is in DB_DataObject/, MDB2.php is in MDB2/, etc...
For MDB2 that's fine (MDB2.php is in PEAR's root dir), for DBDO that would be wrong.
Actually, in MDB2/ there's MDB2.php and another MDB2/. That's exactly as DBDO : in DB_DataObject there's DataObject.php and DataObject/
Reference: http://pear.php.net/group/docs/20031114-pds.php
AFAICS, Structures_DataGrid strictly conforms to this document.
Therefore, normally it's sufficient to checkout the CVS directory. In the case of DataGrid or DBDO it would be needed to rename the first directory.
No, 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/ Usually, I put two symbolic links, like in : ln -s ~/dev/pear_cvs/MDB2/MDB2.php ~/dev/myApp/include/MDB2.php ln -s ~/dev/pear_cvs/MDB2/MDB2 ~/dev/myApp/include/MDB2 Regards, -- og

« previous php.pear.general (#24300) next »