978. Class

978.1. Zend\View\Helper\RenderChildModel

Helper for rendering child view models

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

978.1.1. Methods

978.1.1.1. __invoke

__invoke()

Invoke as a function

Proxies to {render()}.

Parameters:string
Return type:string

978.1.1.2. render

render()

Render a model

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

Parameters:string
Return type:string

978.1.1.3. findChild

findChild()

Find the named child model

Iterates through the current view model, looking for a child model that has a captureTo value matching the requested $child. If found, that child model is returned; otherwise, a boolean false is returned.

Parameters:string
Return type:false|Model

978.1.1.4. getCurrent

getCurrent()

Get the current view model

Return type:null|Model

978.1.1.5. getViewModelHelper

getViewModelHelper()

Retrieve the view model helper

Return type:ViewModel

Project Versions

Table Of Contents

Previous topic

977. Class

Next topic

979. Class

This Page