AdminLayoutHttpControllerResponse

Extends \HttpControllerResponse

Class AdminLayoutHttpControllerResponse

This class will be used for rendering the new Admin pages which must be explicitly written in templates. These templates can extend any of the existing admin layouts by themselves.

Child controllers can you the "init" method to initialize their dependencies

category

System

package

Http

extends

HttpControllerResponse

Methods

Initializes the http controller response.

__construct(string $responseBody, array $responseHeadersArray = null) 
inherited

Arguments

$responseBody

string

Rendered html markup.

$responseHeadersArray

array

Array which contains information about the http response headers.

Get the default and assets translations.

_getTranslations() : array

Hint: Override this method to fetch different default translations.

Response

array

Render the provided template.

_render() 

Hint: Override this method to change the rendering algorithm.

Throws
\InvalidArgumentException
\UnexpectedValueException

Set initial messages for new admin layout.

_setInitialMessages() 

Returns the response body string.

getBody() : string
inherited

Response

string

Returns the response headers array.

getHeaders() : array
inherited

Response

array

Properties

Page Title

title : string
var

Type(s)

string

Template Path

template : string
var

Type(s)

string

Template data.

data : \KeyValueCollection
var

Type(s)

\KeyValueCollection

Page Assets

assets : \AssetCollectionInterface

Provide paths or filenames to JavaScript, CSS or PHP Translation files.

var

Type(s)

\AssetCollectionInterface

Content Sub Navigation

contentNavigation : \ContentNavigationCollectionInterface

The sub navigation will be displayed under the header and can redirect to similar pages.

var

Type(s)

\ContentNavigationCollectionInterface

ContentView instance.

contentView : \ContentView

Used for parsing the Smarty templates.

var

Type(s)

\ContentView

httpHeadersArray

httpHeadersArray : array
inherited
var

Type(s)

array

httpBody

httpBody : string
inherited
var

Type(s)

string