H
H
Head Hunter2016-12-22 19:03:01
Yii
Head Hunter, 2016-12-22 19:03:01

Yii ListView grouping by blocks, how to do?

Greetings to the people, who will tell you how to group by 3 blocks when displaying in a ListView
, I will give an example of what is needed as a result

<div class="main-block-row">
     <div class="main-box">
           Малый блок 1
           Малый блок 2
     </div>
     <div class="main-box">
          Правый большой блок
     </div>
</div>

Moreover, the result can be, and vice versa, the first to go is a large block, then 2 small
foreach are not interested, pagination is needed, and even with loading - this component exists and already plows

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-12-23
@webinar

1. Pagination can be done without ListView
2. ListView uses the same foreach
Therefore, either build your own ListView by inheriting it from the base one, or use foreach and LinkPager for pagination

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question