\Ceo\Modules\Frontend\ControllersIndexController

Default index controller

Summary

Methods
Properties
Constants
initialize()
indexAction()
styleAction()
infoAction()
beaconAction()
blockerAction()
checkAction()
uuidAction()
imgswapAction()
embedAction()
No public properties found
No constants found
enableCompatibilityView()
terminateWithView()
getHttpCodeDescription()
getRequestSegments()
getJsonData()
No protected properties found
N/A
_indexCompat()
No private properties found
N/A

Methods

initialize()

initialize() 

Initialize response headers

indexAction()

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

styleAction()

styleAction() 

infoAction()

infoAction() 

beaconAction()

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.

blockerAction()

blockerAction() 

Supports Ad Blocker detection

checkAction()

checkAction() 

uuidAction()

uuidAction() 

imgswapAction()

imgswapAction() 

embedAction()

embedAction(  $uuid) 

Parameters

$uuid

enableCompatibilityView()

enableCompatibilityView(string  $view) : boolean

Enables path to Gryphon compatible view, if the view exists AND enableCompatibility is on.

NOTE: This will mutate the internal view.

Parameters

string $view

Returns

boolean

terminateWithView()

terminateWithView(string  $view, array  $params = array(), array  $headers = array()) 

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

getHttpCodeDescription()

getHttpCodeDescription(  $code) 

Parameters

$code

getRequestSegments()

getRequestSegments(  $i = null) : mixed

Return rewrite url segments

Parameters

$i

Returns

mixed —

either all segments as array, or single segment

getJsonData()

getJsonData() : array

Fetch POSTed/PUTed json data

Returns

array

_indexCompat()

_indexCompat()