Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tonydavis1995's avatar

Populate Bootstrap Model with table data.

I have a student_teacher table having id of students and teacher belonging to them. I need to populate a bootstrap model when teacher clicks invite . To list names of all student under her. ( Like invite option in facebook pages). Any idea in doing this am new to this

0 likes
8 replies
tonydavis1995's avatar

Its not about how the controller works. Its about how i can populate a bootstrap model with a multipleselect box. The value of select box should be obtained from a table. And the checked selects should be returned back to the controller. If ajax can be used how?

jlrdw's avatar

Is there some example on another site you can show what you are talking about?

jaydeluca's avatar

What does your view look like? Is this data you are passing from the controller or do you need to query an api endpoint when the button is clicked?

tonydavis1995's avatar

Alt text

All i need to do is this. @jaydeluca i am passing data from controller.

when i click a invite button. a modal should popup and inside model i have to list all the students like this and after clicking the checkbox i shd be able to get the student id back in controller

Please or to participate in this conversation.