S
S
Sergey Zolotarev2021-11-22 10:49:04
Yii
Sergey Zolotarev, 2021-11-22 10:49:04

Why doesn't Yii2 work with components if they are implemented in a separate file and put into a separate namespace?

Good afternoon!

Over the past hour, I've come across this:
619b493a29d95130107058.png

A component I wrote does not want to work with the Yii2 component support library if it was put in a namespace.

How to make namespace in one file with components or models work? Thank you in advance and an example of the problematic code in the comments to this question!

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question