DefaultrouteController
class DefaultrouteController extends ControllerBase
DefaultRouteController handles custom routing
Methods
Enables path to Gryphon compatible view, if the view exists AND enableCompatibility is on.
Terminate the action with a view partial. Will dump output directly to browser, but return the action allowing process to continue.
By checking the custom route table, dispatch controller actions based on custom routing rules.
Any exists as a null endpont for any route to attach to.
Details
in ControllerBase at line 16
initialize()
Initialize response headers
in ControllerBase 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.
in ControllerBase 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.
in ControllerBase at line 88
protected
getHttpCodeDescription($code)
in ControllerBase at line 152
protected mixed
getRequestSegments(int $i = null)
Return rewrite url segments
in ControllerBase at line 172
protected array
getJsonData()
Fetch POSTed/PUTed json data
at line 24
Dispatcher
indexAction()
By checking the custom route table, dispatch controller actions based on custom routing rules.
at line 177
anyAction()
Any exists as a null endpont for any route to attach to.
The use case being, you create a route which has an endpoint of
defaultRoute::any
Then you use an interceptor to handle the template data load.