Skip to content
This repository has been archived by the owner on May 2, 2021. It is now read-only.

Json.php

Beanow edited this page Apr 5, 2013 · 1 revision

The Json.php file

This is where you define REST calls. They are mostly used for asynchronous operations, such as jQuery.restForm. If you need the operation to cause a pageload, you probably need the Actions.php file.

REST calls are prefixed based on the request type. For example, calling ?rest=component_name/function_name using an HTTP GET request calls get_function_name in the corresponding Json.php file.

The prefixes:

  HTTP GET     = get_function_name
  HTTP PUT     = update_function_name
  HTTP POST    = create_function_name
  HTTP DELETE  = delete_function_name
Clone this wiki locally