how to configure kartik v extension for file input in yii2

I am new in yii2 how can i configure kartik v extension kindly if someone tell me step by step i followed the documentation but its not going to an end

i have added


"yiisoft/yii2-widget-fileinput": "*"

to composer.json and added yii2-widget-fileinput-master to basic/vendor/yiisoft and in my form i added

use kartik\file\FileInput;

but its still giving the error


Class 'kartik\file\FileInput' not found

is i missing something if any one has idea kindly tell me

Did you update Composer?


composer update

No i did not update composer but now i updated it give the following error

it’s :


"kartik-v/yii2-widget-fileinput": "*"

https://github.com/kartik-v/yii2-widget-fileinput

Ohh yes i interpreted it wrong i think the directory name is yiisoft so i have to write yiisoft its done now thanks alot

great :)

and just use composer to add extensions and modules :rolleyes:

many thanks

yes of course its very easy