\App\CoreModule\PresentersError4xxPresenter

Error 4xx presenter

Summary

Methods
Properties
Constants
afterRender()
injectTranslator()
getTranslator()
createTemplate()
startup()
renderDefault()
$lang
No constants found
No protected methods found
$translator
N/A
No private methods found
No private properties found
N/A

Properties

$lang

$lang : string

Type

normal — Language

$translator

$translator : \Nette\Localization\ITranslator

Type

\Nette\Localization\ITranslator — Translator

Methods

afterRender()

afterRender() : void

After template render

injectTranslator()

injectTranslator(\Nette\Localization\ITranslator  $translator) : void

Injects the translator service

Parameters

\Nette\Localization\ITranslator $translator

Translator

getTranslator()

getTranslator() : \Nette\Localization\ITranslator

Returns the translator

Returns

\Nette\Localization\ITranslator —

Transtalor

createTemplate()

createTemplate() : \Nette\Application\UI\ITemplate

Creates an template

Returns

\Nette\Application\UI\ITemplate —

Template

startup()

startup() : void

Starts up presenter

Throws

\Nette\Application\BadRequestException

renderDefault()

renderDefault(\Nette\Application\BadRequestException  $exception) : void

Renders 4xx error page

Parameters

\Nette\Application\BadRequestException $exception

Bad HTTP(S) request exception