Answer the question
In order to leave comments, you need to log in
Well, why is the class not found?
I create my first extantion, here it is https://packagist.org/packages/kowap/yii2-lightgallery
I do it composer require kowap/yii2-lightgallery
, I paste the code
<?= \kowap\lightgallery\LightGalleryWidget::widget([
'items' => $items,
'options' => [
'mode' => 'lg-slide-skew-ver-rev',
'share' => true,
'thumbnail' => true,
'download' => false,
'zoom' => false
]
]); ?>
Answer the question
In order to leave comments, you need to log in
In classes, you use the namespace kowap\light g allery and in composer.json (in autoload) - kowap\\light G allery\\ . These are different folders from the point of view of Linux ... correct this typo ...
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question