Свойство | Тип | Описание | |
---|---|---|---|
$displayExceptions | boolean | Whether or not to display exceptions related to the 404 condition | |
$displayNotFoundReason | boolean | Whether or not to display the reason for a 404 | |
$notFoundTemplate | string | Template to use to report page not found conditions | |
$reason | false | string | The reason for a not-found condition |
Метод | Описание | |
---|---|---|
attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) | {@inheritDoc} | |
detectNotFoundError ( |
Detect if an error is a 404 condition | |
displayExceptions ( ) : boolean | Should we display exceptions related to a not-found condition? | |
displayNotFoundReason ( ) : boolean | Should we display the reason for a not-found condition? | |
getNotFoundTemplate ( ) : string | Get template for not found conditions | |
prepareNotFoundViewModel ( |
Create and return a 404 view model | |
setDisplayExceptions ( boolean $displayExceptions ) : |
Set value indicating whether or not to display exceptions related to a not-found condition | |
setDisplayNotFoundReason ( boolean $displayNotFoundReason ) : |
Set value indicating whether or not to display the reason for a not-found condition | |
setNotFoundTemplate ( string $notFoundTemplate ) : |
Get template for not found conditions |
Метод | Описание | |
---|---|---|
injectController ( Zend\View\Model\ViewModel $model, |
Inject the controller and controller class into the model | |
injectException ( Zend\View\Model\ViewModel $model, |
Inject the exception message into the model | |
injectNotFoundReason ( Zend\View\Model\ViewModel $model ) : void | Inject the not-found reason into the model |
public attach ( Zend\EventManager\EventManagerInterface $events, $priority = 1 ) | ||
$events | Zend\EventManager\EventManagerInterface |
public detectNotFoundError ( |
||
$e | ||
Результат | void |
public displayExceptions ( ) : boolean | ||
Результат | boolean |
public displayNotFoundReason ( ) : boolean | ||
Результат | boolean |
public getNotFoundTemplate ( ) : string | ||
Результат | string |
protected injectController ( Zend\View\Model\ViewModel $model, |
||
$model | Zend\View\Model\ViewModel | |
$e | ||
Результат | void |
protected injectException ( Zend\View\Model\ViewModel $model, |
||
$model | Zend\View\Model\ViewModel | |
$e | ||
Результат | void |
protected injectNotFoundReason ( Zend\View\Model\ViewModel $model ) : void | ||
$model | Zend\View\Model\ViewModel | |
Результат | void |
public prepareNotFoundViewModel ( |
||
$e | ||
Результат | void |
public setDisplayExceptions ( boolean $displayExceptions ) : |
||
$displayExceptions | boolean | |
Результат |
public setDisplayNotFoundReason ( boolean $displayNotFoundReason ) : |
||
$displayNotFoundReason | boolean | |
Результат |
public setNotFoundTemplate ( string $notFoundTemplate ) : |
||
$notFoundTemplate | string | |
Результат |
protected bool $displayExceptions | ||
Результат | boolean |
protected bool $displayNotFoundReason | ||
Результат | boolean |
protected string $notFoundTemplate | ||
Результат | string |
protected false|string $reason | ||
Результат | false | string |