You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
32 ));
33 }
34
35 public function requiredTemplates()
36 {
37 return array(
38 ‘controller.php’,
39 );
40 }
41
42 public function init()
43 {
44 if(Yii::app()->db===null)
45 throw new CHttpException(500,’An active “db” connection is required to run this generator.’);
46 parent::init();
47 }
48
49 public function successMessage()
50 {
51 $link=CHtml::link(‘try it now’, Yii::app()->createUrl($this->controller), array(‘target’=>’_blank’));
52 return “The controller has been generated successfully. You may $link.”;
53 }
54
55 public function validateModel($attribute,$params)
56 {
Stack Trace
#0
C:\xampp\htdocs\yii\framework\base\CApplication.php(169): CWebApplication->processRequest() findByPk() should bind its argument #15
– C:\xampp\htdocs\yii\testdrive\index.php(13): CApplication->run()
08 defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);
09 // specify how many levels of call stack should be shown in each log message
10 defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3);
11
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2013-06-18 11:06:01 Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6 Yii Framework/1.1.13
plz help me how to resolve this.
The text was updated successfully, but these errors were encountered:
Hi.,
when i execute the link below
http://localhost/yii/testdrive/index.php?r=gii getting the page but when i click CRUD Generator (link: http://localhost/yii/testdrive/index.php?r=gii/crud) getting errors
CDbException
CDbConnection failed to open the DB connection: could not find driver
C:\xampp\htdocs\yii\framework\gii\generators\crud\CrudCode.php(44)
32 ));
33 }
34
35 public function requiredTemplates()
36 {
37 return array(
38 ‘controller.php’,
39 );
40 }
41
42 public function init()
43 {
44 if(Yii::app()->db===null)
45 throw new CHttpException(500,’An active “db” connection is required to run this generator.’);
46 parent::init();
47 }
48
49 public function successMessage()
50 {
51 $link=CHtml::link(‘try it now’, Yii::app()->createUrl($this->controller), array(‘target’=>’_blank’));
52 return “The controller has been generated successfully. You may $link.”;
53 }
54
55 public function validateModel($attribute,$params)
56 {
Stack Trace
#0
CActiveFinder memory leak #1
add function: CUploadedFile::setName() #2
about enum datatype of crud #3
CHttpRequest.sendFile invalid Content-Length when output_handler is ob_gzhandler #4
CDbCriteria::addInCondition() return null on non empty array #5
Possible unserialize() error in CWebUser #6
CActiveRecord::find/find/findbysql and most other finds eat memory #7
isset() && empty() - expression #8
Can't change criteria from behaviour's beforeFind() when using with() #9
Premature end of data in tag definitions in SoapClient #10
typo error "It can be customized via CController::getViewPath." #11
CUrlManager::createUrl() does not support multidimensional params #12
CDbCriteria::addColumnCondition incorrectly handles NULL value #13
SQLite default value for integer incorrect when NULL #14
findByPk() should bind its argument #15
– C:\xampp\htdocs\yii\testdrive\index.php(13): CApplication->run()
08 defined(‘YII_DEBUG’) or define(‘YII_DEBUG’,true);
09 // specify how many levels of call stack should be shown in each log message
10 defined(‘YII_TRACE_LEVEL’) or define(‘YII_TRACE_LEVEL’,3);
11
12 require_once($yii);
13 Yii::createWebApplication($config)->run();
2013-06-18 11:06:01 Apache/2.2.9 (Win32) DAV/2 mod_ssl/2.2.9 OpenSSL/0.9.8i mod_autoindex_color PHP/5.2.6 Yii Framework/1.1.13
plz help me how to resolve this.
The text was updated successfully, but these errors were encountered: