Zend\View\Helper\Navigation::__call
Magic overload: Proxy to other navigation helpers or the container
Examples of usage from a view script or layout: <code> // proxy to Menu helper and render container: echo $this->navigation()->menu(); // proxy to Breadcrumbs helper and set indentation: $this->navigation()->breadcrumbs()->setIndent(8); // proxy to container and find all pages with 'blog' route: $blogPages = $this->navigation()->findAllByRoute('blog'); </code>
Signature
public function __call(string
$method,
array
$arguments )
Parameters
$method
— string- helper name or method name in container
$arguments
— array- [optional] arguments to pass
Returns
- mixed
- returns what the proxied call returns
Errors/Exceptions
-
ExceptionInterface
- if proxying to a helper, and the
-
ExceptionInterface
- if method does not exist in container