R
R
rinatoptimus2017-01-22 10:11:00
Yii
rinatoptimus, 2017-01-22 10:11:00

How to connect to a database in YII?

There is a DB and it is necessary to be connected to it from the new project on YII. Everywhere they write that you need to go to the /wwwroot/blog/protected/data directory and create a database file there.
I can’t find protected in the basic folder:
b1eeafdbbe124d398f65ec1ced2ad424.jpg

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Decadal, 2017-01-22
@Decadal

And intuition.
Go to 'config/db.php' file

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question