A
A
Andrey Ivchenkov2017-01-25 13:58:11
Yii
Andrey Ivchenkov, 2017-01-25 13:58:11

How to call controller from console application in Yii2?

There is a basic application in Yii2. In the console part, the models are changed/added. The frontend part uses caching when displaying models. Accordingly, when the user opens the page for the first time, the data is taken not from the cache, but from the database. In order for the user to always open the cached version of the page, you must call the frontend controller action from the console part of the application yourself. How can this be implemented? Or is my approach fundamentally wrong and is it better to use a different method?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2017-01-25
@webinar

The approach seems to suffer.
I do not think that you are displaying models, most likely data from them
Why? This is some nonsense.
Explain in more detail what is needed and why.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question