class IndexController extends ControllerBase

Default index 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

indexAction()

Site index, responds to the following URL:

styleAction()

No description

infoAction()

No description

beaconAction()

Responds to beacon tracking load call. This is generally not a user definable call, but can be responded to. This is part of the javascript pipeline. Responds to the following URL:

blockerAction()

Supports Ad Blocker detection

checkAction()

No description

uuidAction()

No description

imgswapAction()

No description

embedAction($uuid)

No description

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.

Parameters

string $view

Return Value

boolean

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.

Parameters

string $view path
array $params view params
array $headers optional headers

in ControllerBase at line 88
protected getHttpCodeDescription($code)

Parameters

$code

in ControllerBase at line 152
protected mixed getRequestSegments(int $i = null)

Return rewrite url segments

Parameters

int $i segment from 0

Return Value

mixed either all segments as array, or single segment

in ControllerBase at line 172
protected array getJsonData()

Fetch POSTed/PUTed json data

Return Value

array

at line 33
indexAction()

Site index, responds to the following URL:

  • /

Returns the following items to the view:

  • articles - In compatibility mode
  • section - In compatibility mode

Looks for templates in the following order:

  • gryphon/main/main.tpl - COMPATIBILITY MODE
  • index/index.twig

at line 42
styleAction()

at line 48
infoAction()

at line 87
beaconAction()

Responds to beacon tracking load call. This is generally not a user definable call, but can be responded to. This is part of the javascript pipeline. Responds to the following URL:

  • b/e.js

Returns the following items to the view:

  • fingerprint - user fingerprint
  • ref - referencing url

Looks for templates in the following order:

  • global-partials/_beacon.js.twig

It will also increment the hit counter for the given resource.

at line 135
blockerAction()

Supports Ad Blocker detection

at line 148
checkAction()

at line 270
uuidAction()

at line 306
imgswapAction()

at line 365
embedAction($uuid)

Parameters

$uuid