Adding an action to return a JSON feed
Posted: Tue Aug 07, 2012 11:31 am
I'm trying to use this calender widget on my dashboard page. In order to do so, I need to get a JSON feed from another table. It has a pretty specific requirement for the feed, so I think it's best to roll my own JSON action. I've searched through the forums and wiki, and am a little confused on how I can do this. Can I just define a new action in {site_dir}/actions/get_json.php then call it on the uri line like this?
I'm sure this is easy, I just can't wrap my mind around it yet.
- Code: Select all
-table=cal_data&-action=get_json
I'm sure this is easy, I just can't wrap my mind around it yet.