Class ViewManager

Summary

Fully Qualified Name: Zend\Mvc\View\Http\ViewManager
Extends: AbstractListenerAggregate

Description

Prepares the view layer

Instantiates and configures all classes related to the view layer, including the renderer (and its associated resolver(s) and helper manager), the view object (and its associated rendering strategies), and the various MVC strategies and listeners.

Defines and manages the following services:

Methods

Name Description Defined By
attach() {@inheritDoc} ViewManager
detach() {@inheritDoc} AbstractListenerAggregate
getView() Retrieves the View instance ViewManager
getViewModel() Configures the MvcEvent view model to ensure it has the template injected ViewManager
onBootstrap() Prepares the view layer ViewManager

Method Details

attach()

{@inheritDoc}

Parameter Name Type Description
$events
$priority

Returns:

detach()

{@inheritDoc}

Parameter Name Type Description
$events

Returns:

getView()

Retrieves the View instance

Returns: \View

getViewModel()

Configures the MvcEvent view model to ensure it has the template injected

Returns: \Zend\View\Model\ModelInterface

onBootstrap()

Prepares the view layer

Parameter Name Type Description
$event
$event

Returns: void

Top