postgresql - cakephp 3 postgres 9.4 驱动程序烘焙

标签 postgresql cakephp model drivers cakephp-bake

我想使用烘焙终端命令生成模型。 CakePhp 3 能够连接到我的 postgres 数据库。 postgres 的所有 PHP 扩展均已激活(php_pdo_pgsqlphp_pgsql)。我检查了 php.ini

当我运行命令时:蛋糕烘焙模型

我有这个错误:

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]

最佳答案

您需要为您的 php 安装安装 pdo_pgsql 模块,并在 php.ini 中激活该扩展。

关于postgresql - cakephp 3 postgres 9.4 驱动程序烘焙,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29900684/

相关文章:

php - 具有空数据集的 foreach

php - MVC : what code belongs to the model

ruby-on-rails - RoR 允许非模型参数

postgresql - PostgreSQL 的扩展性与 MongoDB 相比如何?

php - CakePHP 中是否可以检测 MySQL 字段的字段类型?

php - 模型自增号问题.. 1000条记录后

python - 如何在 Django 数据库模型的字段中存储字典

ruby-on-rails - 如何从我的模型调用 ApplicationHelper 内的方法?

postgresql - Postgres 交叉表混淆

拉维尔 5.6。 JSONb 列。计数数组