Could not find driver


Screenshot from 2017-06-20 22-15-46.png
yii2 db exception: Could not find driver …how to resolv this

what database are you using? do you have that php driver installed for that specific database? if you are using postgres you need to install php-pgsql extension as well

I am using mysql which comes with XAMPP…and Yii also uses mysql. And php driver is installed in XAMPP

on command line write line
composer update

if you on root directory thats why causing issue