- Java 双重比较
- java - 比较器与 Apache BeanComparator
- Objective-C 完成 block 导致额外的方法调用?
- database - RESTful URI 是否应该公开数据库主键?
当我输入时:
php composer.phar 需要 kartik-v/yii2-money "*"
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.
Problem 1
- yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- yiisoft/yii2 2.0.1 requires bower-asset/jquery 2.1.*@stable | 1.11.*@stable -> no matching package found.
- Installation request for yiisoft/yii2 == 2.0.1.0 -> satisfiable by yiisoft/yii2[2.0.1].
Potential causes:
- A typo in the package name
- The package is not available in a stable-enough version according to your minimum-stability setting
Installation failed, reverting ./composer.json to its original content.
我的服务器上安装了 Yii 2.0.1,这是我的 composer.json:
{
"name": "yiisoft/yii2-app-advanced",
"description": "Yii 2 Advanced Application Template",
"keywords": ["yii2", "framework", "advanced", "application template"],
"homepage": "http://www.yiiframework.com/",
"type": "project",
"license": "BSD-3-Clause",
"minimum-stability": "stable",
"require": {
"php": ">=5.4.0",
"yiisoft/yii2": "*",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"kartik-v/yii2-money": "*"
},
"require-dev": {
"yiisoft/yii2-codeception": "*",
"yiisoft/yii2-debug": "*",
"yiisoft/yii2-gii": "*",
"yiisoft/yii2-faker": "*"
},
"config": {
"process-timeout": 1800
},
"extra": {
"asset-installer-paths": {
"npm-asset-library": "vendor/npm",
"bower-asset-library": "vendor/bower"
}
}
}
最佳答案
两者都是extension及其所需的 base有稳定的版本所以我认为这个设置:
"minimum-stability": "stable"
不应导致错误。
很可能您只是忘记了安装 composer asset 插件(在官方 documentation 和扩展 page 中阅读更多内容)。要安装它,只需执行一次此命令:
composer global require "fxp/composer-asset-plugin:1.0.0-beta4"
关于php - Composer Yii2 - 安装 kartik,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27703230/
如何在 Kartik Gridview 中禁用分页?我正在使用如下代码 echo GridView::widget([ 'dataProvider'=>$dataProvide
如何禁用kartik gridview中的pdf导出属性? 我已经安装了 kartik gridview,它给了我以下错误。 The class '\kartik\mpdf\Pdf' was not
我的 Select2 控件位于引导类“col-sm-3”的列内。它还附加到表单字段。但宽度不想成为父列的 100%。如果我使浏览器窗口变小(列自动重新排列后),Select2 将遵循父列的宽度。此外,
我在 yii2 项目中使用 kartik 文件输入小部件。 http://demos.krajee.com/widget-details/fileinput 一切都很好,直到访问更新页面,其中使用“i
这是我的 composer .json 文件 { "minimum-stability": "stable", "require": { "php": ">=5.4.0", "yiis
您好,我正在尝试使文件上传正常工作,但我不知道如何触发上传按钮。 我正在使用:https://github.com/kartik-v/yii2-widget-fileinput 我的代码:
好的,我正在尝试使用 Kartik Depdrop 小部件,但出现此错误 500(内部服务器错误) 我有父模型 Brand 和子模型 CarModel 这是我的文件: CarsController.p
我在我的 Yii2 网页上使用了 Kartik GridView(左)。我想保持表格格式,如下所示(右) 查看.php $dataProviderSanChu, 'filterModel'
我在我的 yii2 网格中添加了一个复选框列,并创建了一个可以删除所有选定值的按钮。但是,在我的操作中,我已经使删除图标仅显示依赖项成为可能,如下所示。 'delete' => 函数($model,
我创建了一个 yii2 kartik select2 小部件来选择多个车型,如下所示 'drp-make', 'data' => Car::getCarMakesEnglish(),
当我拉入 kartik 可扩展行网格时,使用 pjax 未应用可编辑列样式。我该怎么做才能将 css 应用于此列? $dataProvider, 'filterModel' => $
在 kartik DatePicker Yii2 中有没有办法 - 我可以禁用大于当前日期的日期? 例如:如果今天是 2016 年 3 月 14 日,则应禁用 2016 年 3 月 15 日的日历日期
如何将预输入结果放置在文本输入上方?对我来说最好的办法是向这个小部件添加一个选项或者一些 css 规则? 最佳答案 此刻,我终于在 typeahead 小部件的 render 事件中使用了 jQuer
我包含 Kartik yii2 ExportMenu 插件,它对于所有数据导出都工作良好,但现在我只想导出在网格上检查的选定行。 'yii\grid\SerialColumn'], 'u
这是默认代码 GridView::widget([ 'dataProvider' => $dataProvider, 'filterModel' => $searchModel,
有没有人能够为 Yii GridView DataColumn 设置自动换行? 这是我设置列的方式: [ 'class' => 'kartik\grid\DataColumn', '
我想要一个启用多日期的内联日期选择器。 它呈现正确但仅返回最后选择的日期。 返回值:'12.11.2016' 如果我将 'type' 设置为 TYPE_INPUT 一切正常。 预期返回值:'23.11
当我尝试使用 kartik select2 时,下拉列表不出现模态插件。当我在没有模态的情况下使用它时,它就像魅力一样。这与从插件网站获取的代码相同,但它仍然不起作用。我在浏览器生成的源代码中发现se
我尝试从问题 DatePicker Week number column to be clickable on selecting week 的示例答案中移动此代码在 Yii2 上使用 kartik
我使用 Select2 小部件将选定的标签输入存储到 MySQL 数据库中。我希望像 010102, 010103, 010299 这样的东西存储在数据库表中。 这是view.php echo
我是一名优秀的程序员,十分优秀!