Answer the question
In order to leave comments, you need to log in
Use a GridView widget or do it yourself?
The question is, I understand with yii2, I write the admin panel.
There is a users section where the entire list of users in the table will be displayed. The table is complex, the admin panel has its own design.
Is it worth picking the GridView
example: ( https://github.com/vova07/yii2-start/blob/master/b...
or is it better to arrange everything manually? Please advise.
Answer the question
In order to leave comments, you need to log in
Both options have the right to life:
1. GridView is very flexible, it's worth spending time to understand its ajax handlers. The resulting table can be used repeatedly. Sorting and filtering will not be a problem at all, even if you use it not in the form that it is (thead input forms) , but do it in a separate block.
2. You have little time and desire to understand the GridView code, you just need to write and forget. Then you can output with a normal foreach.
My answer is more related to Yii 1 than to Yii 2, as @zelenin rightly pointed out
I want to make a table. Use GridView or not? - this is what your question looks like.
Answer: use.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question