sfDatabaseManager

Discussion relating to version 1.2.x stable

sfDatabaseManager

Postby fwave » Mon Mar 23, 2009 7:12 pm

I have the code:

Code: Select all
$db = new sfDatabaseManager();
$db->initialize();


and have this error:

Catchable fatal error: Argument 1 passed to sfDatabaseManager::__construct() must be an instance of sfProjectConfiguration

can some one help me

thanks
fwave
Member
 
Posts: 40
Joined: Sat Dec 16, 2006 3:21 am

Re: sfDatabaseManager

Postby _geo_ » Fri Sep 23, 2011 1:17 pm

If someone is still looking for a solution, i solved it by using this:

Code: Select all
$databaseManager = new sfDatabaseManager(sfContext::getInstance()->getConfiguration());
$databaseManager->initialize(sfContext::getInstance()->getConfiguration());
_geo_
Junior Member
 
Posts: 1
Joined: Fri Sep 23, 2011 1:16 pm


Return to symfony 1.2

Who is online

Users browsing this forum: No registered users and 2 guests