CDbException
Description
CDbConnection failed to open the DB connection: could not find driver
Source File
/membri/todolistapp/yii-svn/framework/db/CDbConnection.php(262)
00250: {
00251: if(empty($this->connectionString))
00252: throw new CDbException(Yii::t(‘yii’,‘CDbConnection.connectionString cannot be empty.’));
00253: try
00254: {
00255: Yii::trace(‘Opening DB connection’,‘system.db.CDbConnection’);
00256: $this->_pdo=$this->createPdoInstance();
00257: $this->initConnection($this->_pdo);
00258: $this->_active=true;
00259: }
00260: catch(PDOException $e)
00261: {
00262: throw new CDbException(Yii::t(‘yii’,‘CDbConnection failed to open the DB connection: {error}’,
00263: array(’{error}’=>$e->getMessage())));
00264: }
00265: }
00266: }
00267:
00268: /**
00269: * Closes the currently active DB connection.
00270: * It does nothing if the connection is already closed.
00271: */
00272: protected function close()
00273: {
00274: Yii::trace(‘Closing DB connection’,‘system.db.CDbConnection’);
Stack Trace
#0 /membri/todolistapp/yii-svn/framework/db/CDbConnection.php(237): CDbConnection->open()
#1 /membri/todolistapp/yii-svn/framework/db/CDbConnection.php(216): CDbConnection->setActive(true)
#2 /membri/todolistapp/yii-svn/framework/base/CModule.php(357): CDbConnection->init()
#3 /membri/todolistapp/yii-svn/framework/base/CApplication.php(391): CModule->getComponent(‘db’)
#4 /membri/todolistapp/yii-svn/framework/db/ar/CActiveRecord.php(526): CApplication->getDb()
#5 /membri/todolistapp/yii-svn/framework/db/ar/CActiveRecord.php(1896): CActiveRecord->getDbConnection()
#6 /membri/todolistapp/yii-svn/framework/db/ar/CActiveRecord.php(328): CActiveRecordMetaData->__construct(Object(User))
#7 /membri/todolistapp/todolist/protected/models/User.php(22): CActiveRecord::model(‘User’)
#8 /membri/todolistapp/todolist/protected/controllers/SiteController.php(35): User::model()
#9 /membri/todolistapp/yii-svn/framework/web/actions/CInlineAction.php(32): SiteController->actionIndex()
#10 /membri/todolistapp/yii-svn/framework/web/CController.php(300): CInlineAction->run()
#11 /membri/todolistapp/yii-svn/framework/web/CController.php(278): CController->runAction(Object(CInlineAction))
#12 /membri/todolistapp/yii-svn/framework/web/CController.php(257): CController->runActionWithFilters(Object(CInlineAction), Array)
#13 /membri/todolistapp/yii-svn/framework/web/CWebApplication.php(320): CController->run(’’)
#14 /membri/todolistapp/yii-svn/framework/web/CWebApplication.php(120): CWebApplication->runController(’’)
#15 /membri/todolistapp/yii-svn/framework/base/CApplication.php(135): CWebApplication->processRequest()
#16 /membri/todolistapp/todolist/index.php(26): CApplication->run()
#17 {main}
2009-11-07 11:11:02 Apache Yii Framework/1.1rc-dev