Cannot make new model

Please help me, what should I do

I want to manage model in YII but i’m getting error notice : CDbConnection.connection String cannot be empty

C:\xampp\htdocs\yii\framework\gii\generator\model\ModelCode.php(60)

60: if(Yii::app()->{$this->connectionId}===null)

Did you find any solution? I’m having the same issue.

https://www.yiiframework.com/doc/guide/1.1/en/quickstart.first-app#connecting-to-database

In case of Yii 2.0:
https://www.yiiframework.com/doc/guide/2.0/en/start-databases#configuring-db-connection