【发布时间】:2014-12-08 07:35:46
【问题描述】:
我是 Yii2 的新手。谁能告诉我如何用 mongodb 配置 YII2 以及如何在 YII2 和 mongodb 之间建立连接?我尝试从 git hub 下载 mongodb 包并尝试运行以下命令
php composer.phar require --prefer-dist yiisoft/yii2-mongodb "*"
在我安装 Yii2 的根文件夹内的命令提示符中,但出现以下错误
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.0 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 == 2.0.0.0 -> satisfiable by yiisoft/yii2[2.0.0].
【问题讨论】:
-
你需要按照安装指南yiiframework.com/doc-2.0/guide-start-installation.html一步一步来
标签: mongodb yii2 yii2-advanced-app