How to load json file in codeigniter... newbie

#1
[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({
  eventsjson: 'file.json' //here to load json file
});

#2
[eluser]InsiteFX[/eluser]
See the PHP manual on json decode and json encode.

#3
[eluser]danny_ci[/eluser]
I have see the manual about the json decoden and json encode.
But i have the problem with json data.
There is 2 ways to pass the json data :
1. It write to some file
2. It write to javascript

But write to javascript there is some limit length for the javascript.
So i have to write to json file.

Thanks before

#4
[eluser]InsiteFX[/eluser]
Read and Write Json Files


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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