How to load json file in codeigniter… newbie |
[eluser]danny_ci[/eluser]
Hi, everyone… I want to ask something about how to load json file in codeigniter But before load the json file, i want to pass some data to json file Any idea for this?? Thanks before Here is some code to load json file in jquery event calendar Code: $("#calendar").eventCalendar({
[eluser]NeoArc[/eluser]
Code: $data = json_decode(file_get_contents('file.json'));
[eluser]Ajaxboy[/eluser]
If you use Cjax (http://ellislab.com/forums/viewthread/229077/), can do this to pass data: Code: $("#calendar").eventCalendar({ Code: Class Calendar Extends CI_Controller { |
Welcome Guest, Not a member yet? Register Sign In |