Redirect pour avoir le menu actif
This commit is contained in:
parent
2f2ed3e5f3
commit
575fece3e9
@ -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')));
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -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()) {
|
||||
|
Loading…
Reference in New Issue
Block a user