Welcome Guest, Not a member yet? Register   Sign In
Bootstrap Dynamic Modal View With AJAX
#2

in your ajax call, echo a view template

$myModal1 = $this->load->view('myModal1', $data=array(), $return=true);

this $return will not render the view but return you the view. after that,

echo json_encode(array('view' => $myModal1));

this code is from scratch. look the doc to see witch param is for $return Smile
Reply


Messages In This Thread
RE: Bootstrap Dynamic Modal View With AJAX - by keulu - 03-07-2016, 09:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB