R
R
raycheel2014-04-13 20:01:50
Yii
raycheel, 2014-04-13 20:01:50

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

2 answer(s)
I
Ivan, 2014-04-13
@0neS

What's wrong with widgets (or portlets)?

Y
Yuri Morozov, 2014-04-13
@metamorph

Widgets, data providers and their analogues.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question