extending pear db
| From: | Ámon Tamás | Date: | Mon, 27 Oct 2003 11:33:15 +0000 |
| Subject: | extending pear db | ||
| Groups: | php.pear.general | ||
| Request: | Send a blank email to pear-general+get-8609@lists.php.net to get a copy of this message | ||
Hi!
I like to extend pear db. I made something like this:
class a_db extends DB
{
function a_db(){
//itt valami
}
function foo(){
}
}
and after call this:
$db = &a_db::Connect($_config['dsn']);
But when I try to call
$db->foo();
I get the message:
Call to undefined function: foo();
I think this is because the $db is a DB_mysql object.
How van I solve this problem?
Thanks in advance and sorry for my poor english.
--
Tamás Ámon <sajt@amon.hu>