Answer the question
In order to leave comments, you need to log in
Why is popup form not working in Yii2?
an example of the form
At me writes that does not see representation.
I connected everything as in the article.
use app\components\FBFWidget; - here it writes an indefinite namespace
config
tried to register like this (does not see):
'fbfWidget' => [
'class' => 'app\components\FBFWidget',
],
Answer the question
In order to leave comments, you need to log in
it is not necessary to use namespace and use for classes lying on the same level - this is about the first screenshot.
Regarding the second one with app/components/FBFWidget:
you definitely shouldn't touch the config. I would rewrite the file name, namespace name and class name. There, a Russian letter could corny get in somewhere. Well, check that the components folder really exists, check the s at the end too, I came across this a couple of times.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question