Zend\View\Helper\Navigation\Menu::renderPartial
Renders the given $container by invoking the partial view helper
The container will simply be passed on as a model to the view script as-is, and will be available in the partial script as 'container', e.g. <code>echo 'Number of pages: ', count($this->container);</code>.
Signature
public function renderPartial([AbstractContainer
$container = null,
[string|array
$partial = null]] )
Parameters
$container
— object- [optional] container to pass to view
script. Default is to use the container
registered in the helper. $partial
— object- [optional] partial view script to use.
Default is to use the partial
registered in the helper. If an array
is given, it is expected to contain two
values; the partial view script to use,
and the module where the script can be
found.
Returns
- string
Errors/Exceptions
-
RuntimeException
- if no partial provided
-
InvalidArgumentException
- if partial is invalid array