1
votes

I want to generate models with bake terminal command. CakePhp 3 is able to connect to my postgres database. All PHP extensions for postgres are activated (php_pdo_pgsql, php_pgsql). I checked php.ini.

When I run the command: cake bake model

I have this error:

Exception: Database driver Cake\Database\Driver\Postgres cannot be used due to a missing PHP extension or unmet dependency in [C:\wampPI\www\ticketHellocom\vend or\cakephp\cakephp\src\Database\Connection.php, line 171]

1
paste the result of running php -m | grep pgsql in your consoleJosé Lorenzo Rodríguez
I have done php -m and there is no module like pgsqlgestrem

1 Answers

1
votes

You need to install the pdo_pgsql module for your php installation and activate the extension in your php.ini.