Loading…

How to connect with database in Yii?

In any Yii application, you need to open the main.php file in the protected/config/main.php folder. Now search for the "DB" parameter. In this parameter, you can add the database name, hostname, username, and password for your database server.

Suggest An Answer

No suggestions avaliable!

Latest post from YII Interview Questions

Ask Question