Skip to content
Jeff Johns edited this page Feb 6, 2014 · 2 revisions
Controller Extends Path
Json Plain_Controller /application/controllers/json.php

Request Types

Type Accessible
XMLHttpRequest Yes
API Yes
Web View Yes

Used only to show errors in JSON format.

Methods

__construct - Public

Called automatically which in turn calls the parent constructor.


authError - Public

Returns a 403 error.


chromePing - Public

Used to ping from the Chrome Extension to see if the user is logged in. If looks for if the user is logged in and if the X_CHROME_EXTENSION header was sent.


index - Public

A catch all that returns a 404 error.