Answer the question
In order to leave comments, you need to log in
How to correctly use frequently used pieces of code in Yii?
Hello! During the development of the project, it became necessary to frequently use the list of goods. Since information is collected in the controller and the whole thing is transferred to the mind, after which the page itself is obtained.
But I have several such pages, the question is how to make some kind of universal way to call the product list. So that I can call this list anywhere and it is successfully displayed.
I would not mind hearing a few options, if any. Thank you!
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question