D
D
des1roer2015-02-06 16:00:26
Yii
des1roer, 2015-02-06 16:00:26

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

1 answer(s)
D
Dmitry Bay, 2015-02-06
@des1roer

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 question

Ask a Question

731 491 924 answers to any question