category Zend
package Zend_Mvc
subpackage View

 Methods

Attach the aggregate to the specified event manager

attach(\Zend\EventManager\EventManagerInterface $events) : void

Implementors may add an optional $priority argument; the EventManager implementation will pass this to the aggregate.

Parameters

Detach aggregate listeners from the specified event manager

detach(\Zend\EventManager\EventManagerInterface $events) : void

Do we display the routing failure?

displayNotFoundReason() : bool

Returns

bool

Detect if an error is a route not found condition

handleRouteNotFoundError(\Zend\Mvc\MvcEvent $e) : void

If a "controller not found" or "invalid controller" error type is encountered, sets the response status code to 404.

Parameters

Exceptions

\Zend\Mvc\Exception\RuntimeException
\Zend\ServiceManager\Exception\ServiceNotFoundException

Set flag indicating whether or not to display the routing failure

setDisplayNotFoundReason(bool $displayNotFoundReason) : \Zend\Mvc\View\Console\RouteNotFoundStrategy

Parameters

$displayNotFoundReason

bool

Returns

Build Console application banner text by querying currently loaded modules.

getConsoleBanner(\Zend\Console\Adapter\AdapterInterface $console, \Zend\ModuleManager\ModuleManagerInterface $moduleManager) : string

Build Console usage information by querying currently loaded modules.

getConsoleUsage(\Zend\Console\Adapter\AdapterInterface $console, string $scriptName, \Zend\ModuleManager\ModuleManagerInterface $moduleManager) : string

Parameters

$scriptName

string

Exceptions

\Zend\Mvc\Exception\RuntimeException

Returns

string

Render a text table containing the data provided, that will fit inside console window's width.

renderTable($data, $cols, $consoleWidth) : string

Parameters

$data

$cols

$consoleWidth

Returns

string

Report the 404 reason and/or exceptions

reportNotFoundReason(\Zend\EventManager\EventInterface $e) : string

Parameters

Returns

string

 Properties

 

Whether or not to display the reason for routing failure

$displayNotFoundReason : bool

 

$listeners

$listeners : \Zend\Stdlib\CallbackHandler[]

 

The reason for a not-found condition

$reason : bool | string