[<A Href='yiibase.include'>Yiibase.include</a>]: Failed To Open Stream: No Such File Or Directory

below is my error showing when i clicked on model generator after login to gii index , here i am unable to create database

PHP warning

YiiBase::include(PDO.php) [<a href=‘yiibase.include’>yiibase.include</a>]: failed to open stream: No such file or directory

F:\AppServ\www\yiiroot\framework\YiiBase.php(427)

415 {

416 include($classFile);

417 if(YII_DEBUG && basename(realpath($classFile))!==$className.’.php’)

418 throw new CException(Yii::t(‘yii’,‘Class name “{class}” does not match class file “{file}”.’, array(

419 ‘{class}’=>$className,

420 ‘{file}’=>$classFile,

421 )));

422 break;

423 }

424 }

425 }

426 else

427 include($className.’.php’);

428 }

429 else // class name with namespace in PHP 5.3

430 {

431 $namespace=str_replace(’\\’,’.’,ltrim($className,’\\’));

432 if(($path=self::getPathOfAlias($namespace))!==false)

433 include($path.’.php’);

434 else

435 return false;

436 }

437 return class_exists($className,false) || interface_exists($className,false);

438 }

439 return true;

Stack Trace

#0

F:\AppServ\www\yiiroot\framework\YiiBase.php(427): YiiBase::autoload()

#1

unknown(0): YiiBase::autoload("PDO")

#2

unknown(0): spl_autoload_call("PDO")

#3

F:\AppServ\www\yiiroot\framework\db\CDbConnection.php(425): class_exists("PDO")

#4

F:\AppServ\www\yiiroot\framework\db\CDbConnection.php(374): CDbConnection->createPdoInstance()

#5

F:\AppServ\www\yiiroot\framework\db\CDbConnection.php(330): CDbConnection->open()

#6

F:\AppServ\www\yiiroot\framework\db\CDbConnection.php(308): CDbConnection->setActive(true)

#7

F:\AppServ\www\yiiroot\framework\base\CModule.php(387): CDbConnection->init()

#8

F:\AppServ\www\yiiroot\framework\base\CModule.php(103): CModule->getComponent("db")

#9

F:\AppServ\www\yiiroot\framework\gii\generators\model\ModelCode.php(60): CModule->__get("db")

#10

F:\AppServ\www\yiiroot\framework\web\CFormModel.php(39): ModelCode->init()

#11

F:\AppServ\www\yiiroot\framework\gii\CCodeGenerator.php(153): CFormModel->__construct()

#12

F:\AppServ\www\yiiroot\framework\gii\CCodeGenerator.php(63): CCodeGenerator->prepare()

#13

F:\AppServ\www\yiiroot\framework\web\actions\CInlineAction.php(49): CCodeGenerator->actionIndex()

#14

F:\AppServ\www\yiiroot\framework\web\CController.php(308): CInlineAction->runWithParams(array("r" => "gii/model/index"))

#15

F:\AppServ\www\yiiroot\framework\web\CController.php(286): CController->runAction(CInlineAction)

#16

F:\AppServ\www\yiiroot\framework\web\CController.php(265): CController->runActionWithFilters(CInlineAction, array())

#17

F:\AppServ\www\yiiroot\framework\web\CWebApplication.php(282): CController->run("index")

#18

F:\AppServ\www\yiiroot\framework\web\CWebApplication.php(141): CWebApplication->runController("gii/model/index")

#19

F:\AppServ\www\yiiroot\framework\base\CApplication.php(180): CWebApplication->processRequest()

#20

F:\AppServ\www\demo\index.php(14): CApplication->run()

09 defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);

10 // specify how many levels of call stack should be shown in each log message

11 defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3);

12

13 require_once($yii);

14 Yii::createWebApplication($config)->run();

15

16

17

Hi,

Paste your main.php gii setting… that is the main one…