Answer the question
In order to leave comments, you need to log in
Yii2 class not found. how to fix?
I downloaded the widget through composer from github. The widget is placed in the vendor folder
When trying to connect the widget, it gives an error
Here is the code for connecting the widgetClass 'vkolya\poll\myPoll' not found
use vkolya\poll\myPoll;
echo myPoll::widget([
'visualization' => 'PieChart',
'pullName' => 'Do yoasdu wanna ?',
'answerOptions'=>
[
'yesasddfs',
'sdnsdfo',
'masdysdfbe',
],
'diagrammsOptions' => array(title => 'My Dailsdy Activity',
height => 300,
width => 450,
),
])
namespace vkolya\poll;
class myPoll extends Widget {
//some code..
}
Answer the question
In order to leave comments, you need to log in
here, if I'm not mistaken, the path must match the namespace."psr-4": { "vkolya\\poll\\": "" }
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question