\Ceo\Modules\Frontend\ControllersStaticviewController

StaticViewController handles loading of statically cached views.

It has no public routes and is called directly via the Dispatcher.

Summary

Methods
Properties
Constants
initialize()
indexAction()
No public properties found
No constants found
enableCompatibilityView()
terminateWithView()
getHttpCodeDescription()
getRequestSegments()
getJsonData()
No protected properties found
N/A
No private methods found
$validContentTypes
N/A

Properties

$validContentTypes

$validContentTypes : 

Type

Methods

initialize()

initialize() 

Initialize response headers

indexAction()

indexAction() : \Phalcon\Http\Response

Default action Load uri and contents from StaticViewService and return content as response

Returns

\Phalcon\Http\Response

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