Answer the question
In order to leave comments, you need to log in
Yii framework first run?
web guru. tell me what am I doing wrong?
installed yii 1.1.16 on denver.
I go to Z:\home\yii\www\protected\config there in database.php I uncommented the connection strings
<?php
// This is the database connection configuration.
return array(
'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
// uncomment the following lines to use a MySQL database
'connectionString' => 'mysql:host =localhost;dbname=testdrive',
'emulatePrepare' => true,
'username' => 'root',
'password' => 'root',
'charset' => 'utf8',
);
but login fails?
Answer the question
In order to leave comments, you need to log in
And where does the base also log in?
Don't forget to comment out the connection to sqllite
//'connectionString' => 'sqlite:'.dirname(__FILE__).'/../data/testdrive.db',
// uncomment the following lines to use a MySQL database
UserIdentity is responsible for login class, and by default, login password in yii1 is admin/admin and demo/demo
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question