Should MDB2_Module be MDB2_Module_Common?
| From: | A.L.W.Kuijper | Date: | Sun, 08 Apr 2007 09:28:20 +0000 |
| Subject: | Should MDB2_Module be MDB2_Module_Common? | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-27019@lists.php.net to get a copy of this message | ||
Hi all,
As a PHP-newbie, I am trying to get some extra
functionality in the MDB2 class by creating custom
modules. However, it seems that the necessary class
MDB2_Module is lacking from my MDB2 directory.
For example, if I place the following custom module inside my PEAR/MDB2 directory:
<?php
class ModuleTest Extends MDB2_Module
{
...
}
?>
I get the following error:
Cannot inherit from undefined class mdb2_module in
/usr/share/php/MDB2/ModuleTest.php on line 5
by grepping through my PEAR directory, I can only find the
class MDB2_Module_Common, while MDB2_Module is apparently
lacking. Should I replace MDB2_Module by MDB2_Module_Common
or is something else missing here?
cheers,
Bram