S
S
Svyatoslav Torg2016-10-31 18:52:16
Yii
Svyatoslav Torg, 2016-10-31 18:52:16

The backend does not see models in common, but the front does. Why?

Hello, I uploaded a project on YII2 Advanced to elasticweb hosting, they already have a ready-made nginx config for advanced,
and here are GENERAL MODELS, Frontend works with a bang, all functions, everything is great!)
And the backend is the usual set of CRUDs, and when I switch to index any CRUD throws
"Class 'common\models\menu' not found". (Support shakes hands).
Once again I will say that the front of the model sees. Works on OpenServer. Written in php7. The server also has php7.
Maybe someone had something similar?
The architecture is like this:
72d20c7140ef47e7a53a5eab8874766c.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Svyatoslav Torg, 2016-10-31
@sefkiss

DECIDED ITSELF!
And so the essence was as follows, the frontend was all written with pens, so it immediately worked.
And I did the backend through the GII CRUD generator, and it wrote "use common\models\model" in all controllers and Search
models, but it was necessary to Model , be careful, everything worked for me)))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question