Passing jquery JSON from Codeigniter controller to view
- by dede
I've been struggling to make it work, but cannot pass the inserted data from the controler to the view in CI using JSON. The input value from the form is successfully inserted into the database, but cannot make it appear in the view.
This is my view file ajax_view.php:
<script type="text/javascript" src="<?php echo base_url();…