Properties

$_response

$_response : 

Response

Type

$_webroot

$_webroot : 

Webroot

Type

$_themeName

$_themeName : 

Theme name

Type

$_theme

$_theme : 

Theme

Type

Methods

__construct()

__construct()

Constructor

prepareTheme()

prepareTheme()

Prepare theme

setThemeName()

setThemeName( $name)

Set the theme name in the response

Parameters

$name

getThemeName()

getThemeName() : string

Get the theme name

Returns

string —

$name

setThemeTemplate()

setThemeTemplate(string $template)

Set the theme template used to render the page

Parameters

string $template

_before()

_before()

Before

_after()

_after()

After action hook anything here gets called immediately AFTER the Action method runs.

getResponse()

getResponse() : \erdiko\core\ResponseObject

Get Response object

Returns

\erdiko\core\ResponseObject

send()

send()

Send

setResponseDataValue()

setResponseDataValue(string $key, mixed $value)

Set Response data value

Parameters

string $key
mixed $value

setPageTitle()

setPageTitle(string $title)

Add page title text to current page

Parameters

string $title

setBodyTitle()

setBodyTitle(string $title)

Set page content title to be themed in the view

Parameters

string $title

setTitle()

setTitle(string $title)

Set both the title (header) and page title (body) at the same time

Parameters

string $title

setContent()

setContent( $content)

Set the response content

Parameters

$content

appendContent()

appendContent( $content)

Add/append html text to the response content

Parameters

$content

urlToActionName()

urlToActionName( $name,  $httpMethod) : string

Modify the action name coming from the URL into proper action name

Parameters

$name
$httpMethod

Returns

string

getView()

getView(string $viewName, array $data) : string

Load a view with the given data

Parameters

string $viewName
array $data

Returns

string —

$html, view contents

addView()

addView(string $viewName, array $data) : string

Add a view from the current theme with the given data

Parameters

string $viewName
array $data

Returns

string —

$html, view contents

getLayout()

getLayout(string $layoutName, array $data) : string

Load a layout with the given data

Parameters

string $layoutName
array $data

Returns

string —

$html, layout contents

redirect()

redirect(string $url)

Redirect to another url

Parameters

string $url

parseArguments()

parseArguments(string $arguments) : array

Parse Arguments

Parameters

string $arguments

Returns

array —

$arguments

compileNameValue()

compileNameValue(array $intArray) : array

Compile name value

Parameters

array $intArray

Returns

array —

$keyArray

addPhpToJs()

addPhpToJs(mixed $key, mixed $value)

Add phpToJs variable to be set on the current page

Parameters

mixed $key
mixed $value

addMeta()

addMeta(string $content, string $name)

Add Meta Tags to the page

Parameters

string $content
string $name
  • html meta name (e.g. 'description' or 'keywords')

getExceptionHtml()

getExceptionHtml(string $message)

Get Exception Html

Parameters

string $message

getHello()

getHello()

Get Hello

get()

get(mixed $var) : mixed

Get

Parameters

mixed $var

Returns

mixed

getIndex()

getIndex()

Homepage Action (index)

getBaseline()

getBaseline()

Get base line

getFullpage()

getFullpage()

Get full page

getSetview()

getSetview()

Get set view

getSetmultipleviews()

getSetmultipleviews()

Get multiple views

getSetmultipleviewsAlt()

getSetmultipleviewsAlt()

Get multiple views at

getSetview2()

getSetview2()

Get view2

getCarousel()

getCarousel()

Slideshow Action

getPhpinfo()

getPhpinfo()

Get php info

getMarkup()

getMarkup()

Get Mark Up

getTwocolumn()

getTwocolumn()

Get two column

getThreecolumn()

getThreecolumn()

Get three column

getGrid()

getGrid()

Get grid

_autoaction()

_autoaction( $var,  $httpMethod)

Autoaction

Parameters

$var
$httpMethod

_replaceActionName()

_replaceActionName( $parts)

Call back for preg_replace in urlToActionName

Parameters

$parts