Redirect pour avoir le menu actif

This commit is contained in:
Michael RICOIS 2016-06-07 11:47:18 +02:00
parent 2f2ed3e5f3
commit 575fece3e9
2 changed files with 4 additions and 4 deletions

View File

@ -24,9 +24,8 @@ class IndexController extends Zend_Controller_Action
{
//Afficher le menu pour la version mobile
}
else
{
$this->forward('index', 'entreprise', 'search');
else {
$this->redirect($this->view->url(array('module'=>'search', 'controller'=>'entreprise', 'action'=>'index')));
}
}

View File

@ -34,7 +34,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
return;
}
if ($module == 'default' && $controller == 'index' && $action == 'index') {
if ($module == 'default') {
return;
}
@ -168,6 +168,7 @@ class Application_Controller_Plugin_Menu extends Zend_Controller_Plugin_Abstract
{
if ($this->container->hasPages()) {
foreach($this->container->getPages() as $head) {
// Active on parent if children
if ($head->hasChildren()) {
foreach($head->getPages() as $page) {
if ($page->isActive()) {