ControllerBase
class ControllerBase extends Controller
Base controller
Methods
initialize()
Initialize response headers
boolean
enableCompatibilityView(string $view)
Enables path to Gryphon compatible view, if the view exists AND enableCompatibility is on.
terminateWithView(string $view, array $params = [], array $headers = [])
Terminate the action with a view partial. Will dump output directly to browser, but return the action allowing process to continue.
getHttpCodeDescription($code)
No description
mixed
getRequestSegments(int $i = null)
Return rewrite url segments
array
getJsonData()
Fetch POSTed/PUTed json data
Details
at line 16
initialize()
Initialize response headers
at line 44
protected boolean
enableCompatibilityView(string $view)
Enables path to Gryphon compatible view, if the view exists AND enableCompatibility is on.
NOTE: This will mutate the internal view.
at line 62
protected
terminateWithView(string $view, array $params = [], array $headers = [])
Terminate the action with a view partial. Will dump output directly to browser, but return the action allowing process to continue.
at line 88
protected
getHttpCodeDescription($code)
at line 152
protected mixed
getRequestSegments(int $i = null)
Return rewrite url segments
at line 172
protected array
getJsonData()
Fetch POSTed/PUTed json data