• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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 )

Many thanks.

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  

  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.