简体   繁体   English

Yii2:如何安装多输入小部件

[英]Yii2: how to install multi-input widget

i have been trying to use this yii2-multiple-input widget but can't seem to be working. 我一直在尝试使用此yii2-multiple-input小部件,但似乎无法正常工作。 I have put the downloaded folder inside the vendor dir. 我已将下载的文件夹放在供应商目录中。

Error : Class 'unclead\\multipleinput\\MultipleInput' not found 错误:找不到类“ unclead \\ multipleinput \\ MultipleInput”

The preferred way to install this extension is through composer . 安装此扩展的首选方法是通过composer

Either run 无论运行

php composer.phar require  unclead/yii2-multiple-input "~2.0"

or add 或添加

"unclead/yii2-multiple-input": "~2.0"

to the require section of your composer.json file. composer.json文件的require部分。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM