Howto develop PEAR package using data_dir
| From: | user at domain dot invalid | Date: | Thu, 04 Sep 2008 09:30:50 +0000 |
| Subject: | Howto develop PEAR package using data_dir | ||
| Groups: | php.pear.dev | ||
| Request: | Send a blank email to pear-dev+get-50711@lists.php.net to get a copy of this message | ||
I'm developping my own PEAR package. I'm trying to keep as close to the PEAR standards as I can.
I've got some data files with my package.
During development these datafiles are in the same directory as my php files, but after installing the package with the pear command the files are in a different directory. I'm using PEAR_Config::singleton()->get('data_dir') to get the directory. Obviously testing the code fails because the files aren't in the data_dir, or maybe there are just old files there.
But how do I easily run my code without installing the package over and over again?