Im using Denwer on:
Windows NT ACERIS 5.1 build 2600 (Windows XP Professional Service Pack 3) i586
with:
Apache/2.2.4 (Win32) mod_ssl/2.2.4 OpenSSL/0.9.8k
PHP/5.3.3
mysqlnd 5.0.7-dev - 091210 - $Revision: 300533 $
PDO is enabled:
PDO MySQL extension Passed All DB-related classes This is required if you are using MySQL database.
ERROR PAGE:
CDbException
CDbConnection failed to open the DB connection: could not find driver
W:\home\yii\framework\gii\generators\model\ModelCode.php(54)
42 ));
43 }
44
45 public function requiredTemplates()
46 {
47 return array(
48 'model.php',
49 );
50 }
51
52 public function init()
53 {
54 if(Yii::app()->db===null)
55 throw new CHttpException(500,'An active "db" connection is required to run this generator.');
56 $this->tablePrefix=Yii::app()->db->tablePrefix;
57 parent::init();
58 }
59
60 public function prepare()
61 {
62 if(($pos=strrpos($this->tableName,'.'))!==false)
63 {
64 $schema=substr($this->tableName,0,$pos);
65 $tableName=substr($this->tableName,$pos+1);
66 }