Skip to content
Snippets Groups Projects
Commit 840c6bfd authored by llaffont's avatar llaffont
Browse files

URL Rewriting: correction des liens du menu horizontal côté accès pro.

parent db1f524e
Branches
Tags
No related merge requests found
......@@ -25,13 +25,13 @@ class ZendAfi_View_Helper_Admin_MenuHorizontalAdmin extends ZendAfi_View_Helper_
public function menuHorizontalAdmin() {
$menus = array(array("icon" => "icon_home.gif",
"label" => $this->translate()->_("Accueil"),
"url" => "/admin"),
"url" => $this->view->url(['module' => 'admin'], null, true)),
array("icon" => "profils_16.png",
"label" => $this->translate()->_("Retour au site"),
"url" => "?id_profil=".Class_Profil::getCurrentProfil()->getId()),
"url" => $this->view->url(['id_profil' => Class_Profil::getCurrentProfil()->getId()], null, true)),
array("icon" => "deconnexion.png",
"label" => $this->translate()->_("Se déconnecter"),
"url" => "/admin/auth/logout"));
"url" => $this->view->url(['module' => 'admin', 'controller' => 'auth', 'action' => 'logout'], null, true)));
return $this->generateMenu($menus);
}
......@@ -41,7 +41,7 @@ class ZendAfi_View_Helper_Admin_MenuHorizontalAdmin extends ZendAfi_View_Helper_
$content = '<ul>';
foreach ($menus as $entry) {
$icon_url = URL_ADMIN_IMG.'picto/'.$entry['icon'];
$target_url = BASE_URL.$entry['url'];
$target_url = $entry['url'];
$label = $entry['label'];
$count_info = '';
......
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