Commit 04eb3003 authored by Bertrand Gauthier's avatar Bertrand Gauthier
Browse files

Nécessité de faire setUseRouteMatch(true) sur les pages de type Mvc.

parent 0f083785
Pipeline #4138 passed with stage
in 23 seconds
......@@ -2,6 +2,7 @@
namespace UnicaenApp\View\Helper\Navigation;
use Zend\Navigation\Page\Mvc;
use Zend\View\Helper\Navigation\Menu;
use Zend\Navigation\Page\AbstractPage;
use UnicaenApp\Exception\LogicException;
......@@ -284,11 +285,14 @@ class AbstractMenu extends Menu
$escapeLabel = false;
if ($page instanceof Mvc) {
try {
$page->getHref(); // si on ne parvient pas à construire l'URL alors on sort
$html = parent::htmlify($page, $escapeLabel, $addClassToListItem);
return $html;
}catch(\Exception $e){
} catch(\Exception $e){
return null;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment