How to return $data to modal btn form (for Edit function) |
Hi, i'm new with php and i wonder anybody here can help me with how to return data to a modal button.
when calling the edit button a page, it is quite easy as you just have to load the $data array in the controller that leads the view. But with the modal button, there is no loading view, then where are loading the $data. Please need help i'm stuck with my project work
A modal is already loaded when the view is displayed, you need to use Ajax to do what you want.
A couple of links to point you in the right direction. CodeIgniter and Bootstrap modal - passing data View data in a Bootstrap modal using Ajax, jQuery and PHP What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |