Zend\View\Model\ViewModel::addChild
Add a child model
Signature
public function addChild(ModelInterface
$child,
[null|string
$captureTo = null,
[null|bool
$append = null]] )
Parameters
$child
— Zend\View\Model\ModelInterface
$captureTo
— object- Optional; if specified, the "capture to" value to set on the child
$append
— object- Optional; if specified, append to child with the same capture
Returns
- ViewModel