We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

how to show data on popup?

I want to show popup on button.Popup should contain all data which is given by a controllers action. how can I achive this in phalcon?.I dont want all data on another page.Just want data to be print on popup. That popup is edit form which later on will get submitted.



33.8k

WIth AJAX call the controller's action you want. Inside of it, return what do you want.

i want controllers data on popup



33.8k
Accepted
answer

Yeah, you want a controller's action data in a popup. For that, do an AJAX call, and set the returned content in the popup's textbox