I'm trying to do ` $partial = array(DIR.'/menu.phtml', 'default');
echo $this->navigation()->menu()->setPartial($partial);`
and im getting error Fatal error: Zend\View\Exception\RuntimeException: Zend\View\Renderer\PhpRenderer::render: Unable to render template "/home/cawa/www/zf2/module/Nav/view/layout/menu.phtml"; resolver could not resolve to a file in /home/cawa/www/zf2/vendor/zendframework/zendframework/library/Zend/View/Helper/Navigation/AbstractHelper.php on line 471
what is the problem?
Also note about naming of menus - if the "navigation" keyword doesn't exist then container in the partial was empty for me.
<?= $this->navigation()->menu('navigation')->setPartial(array('partials/menu.phtml', 'default'))->render() ?>