- 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
$db = new sfDatabaseManager();
$db->initialize();
$databaseManager = new sfDatabaseManager(sfContext::getInstance()->getConfiguration());
$databaseManager->initialize(sfContext::getInstance()->getConfiguration());
Users browsing this forum: No registered users and 2 guests