A
A
Alexander Ivanov2017-04-15 00:24:37
Yii
Alexander Ivanov, 2017-04-15 00:24:37

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
97b4be64b78b492695e22b3f03c7685e.png
4732abfb0f0c44729cbb197d59e558c7.png
config
68084ccb9730486d9226114fdb33801a.png
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

2 answer(s)
D
Dmitry, 2017-04-15
@cimonlebedev

Good morning.
Try to rewrite file paths, clear runtime/cache.

M
Maxim Timofeev, 2017-04-15
@webinar

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 question

Ask a Question

731 491 924 answers to any question