Class RenderChildModel

Summary

Fully Qualified Name: Zend\View\Helper\RenderChildModel
Extends: AbstractHelper

Description

Helper for rendering child view models

Finds children matching "capture-to" values, and renders them using the composed view instance.

Methods

Name Description Defined By
__invoke() Invoke as a function RenderChildModel
getView() Get the view object AbstractHelper
render() Render a model RenderChildModel
setView() Set the View object AbstractHelper

Method Details

__invoke()

Invoke as a function

Proxies to {render()}.

Parameter Name Type Description
$child string

Returns: string

getView()

Get the view object

Returns: null|\Renderer

render()

Render a model

If a matching child model is found, it is rendered. If not, an empty string is returned.

Parameter Name Type Description
$child string

Returns: string

setView()

Set the View object

Parameter Name Type Description
$view \Renderer

Returns: \AbstractHelper

Top