Re: Re: mdb2 question

From: Date: Fri, 26 Nov 2004 11:24:47 +0000
Subject: Re: Re: mdb2 question
References: 1 2  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-15822@lists.php.net to get a copy of this message
Hi, There is a problem with: $mdb2->loadModule('Tools/Manager'); This function loads the file MDB2/Tools/Manager.php and try to create a class name ; $class_name = 'MDB2_'.ucfirst($module); which result in "MDB2_TOOLS/manager". Such a class dosent exist. It should be; "MDB2_TOOLS_Manager" Is it a bug or am i missing some thing? regards, atu ----- Original Message ----- From: "Lukas Smith" <lsmith@php.net> To: <pear-general@lists.php.net>; "Atu" <test4@a-tu.net> Sent: Friday, November 26, 2004 11:32 AM Subject: [PEAR] Re: mdb2 question
Atu wrote:
Hi, Is there an other way to create databases and tables else than through the function "updateDatabase" of the class "MDB2_Tools_Manager". I saw in the class "MDB2_Driver_Manager_Common" functions as "createDatabase" or "createTable" but they are not accessible through the Tools/Manager class. How is it possible to use them?
$mdb2 =& MDB2::connect($dsn); $mdb2->loadModule('mamager'); $mdb2->createDatabase(); $mdb2->createTable(); regards, Lukas -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php


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