R
R
Rustam Idrisov2016-08-30 00:39:17
Yii
Rustam Idrisov, 2016-08-30 00:39:17

How to make a selection of elements from the database in Yii2 and proceed to work with the selected elements?

Good evening!
There is an admin panel on Yii2.
On the table page (table tag), elements from the database are displayed line by line.
You need to create checkboxes for each row, and, say, by pressing a button, proceed to work with the selected elements.
I do not understand how to link a checkbox and a specific element from the database.
Please help, thanks in advance!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
Maxim Timofeev, 2016-08-30
@RustaMechanic

And why does gridview not fit with ready-made functionality? Use gii and get not just an example, but a ready-made implementation.
Related links:
https://nix-tips.ru/yii2-api-guides/guide-ru-start...
https://nix-tips.ru/yii2-razbiraemsya-s-gridview.html
demos.krajee .com/grid-demo

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question