Home > PHP Framework > YII > body text

How to install plug-ins for yii

(*-*)浩
Release: 2019-12-30 11:10:34
Original
1789 people have browsed it

How to install plug-ins for yii

Install the composer plug -in installation: (Recommended learning: yii framework

)

1, add the corresponding plug-in in the project root directory: vendor -> composer.json: add

in the following range:


For example: the texture cannot be posted, please describe it in text: Found Corresponding below.

"require": {
"php": ">=5.4.0",
"yiisoft/yii2": ">=2.0.6",
"yiisoft/yii2-bootstrap": "*",
"yiisoft/yii2-swiftmailer": "*",
"kartik-v/yii2-widget-datetimepicker": "*",
"kartik-v/yii2-widgets": "dev-master"
Copy after login

No need to put a comma in the last one,

Find the corresponding project in the shell: If it is an ABC project, enter the ABC project and execute: composer update and install it until successful.

Second method:

Find the corresponding project in SHELL and find the corresponding directory: enter cd vendor ->Execute:

composer require kartik-v/yii2-widget-fileinput "@dev"
Copy after login

Install directly, it is recommended to use the first method.

###

The above is the detailed content of How to install plug-ins for yii. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
yii
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!