I installed kartik fileinput via composer and successfully installed!
but when im used that like:
use yii\helpers\Url;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
use kartik\widgets\FileInput;
echo FileInput::widget([
'name' => 'attachment_48[]',
'options' => [
'multiple' => true
],
'pluginOptions' => [
'uploadUrl' => Url::to(['/site/file-upload']),
'uploadExtraData' => [
'album_id' => 20,
'cat_id' => 'Nature'
],
'maxFileCount' => 10
]
]);
in backend part, i get error :
Class 'kartik\widgets\FileInput' not found
what's wrong with my code?
Any help appreciated!!!
use this..........
use kartik\file\FileInput;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With