Could not find driver PDOException in yii2
<p>I am using <code>xampp</code> and building a project in <code>Yii2</code>. I am getting below error </p>

<blockquote>
  <p>"Caused by: PDOException could not find driver in D:\xampp\htdocs\basic\vendor\yiisoft\yii2\db\Connection.php at line 602".</p>
</blockquote>

<p>I also uncommented <code>extension=php_pdo_pgsql.dll</code>  in <code>php.ini</code> file, but still it's not working. </p>