Unable to connect SQL server from yii2 but able to connect from simple php code

When I m trying to connect yii2 with SQL server
getting error

Database Exception – yii\db\Exception
Could not find driver
But I m able to connect using simple php code.

Thanks in advanced.

Could you post your db connection config?

1 Like