getExplodedPath($request); $adminModule = (string) Mage::getConfig()->getNode('admin/routers/adminhtml/args/frontName'); if ($adminPageHelper->getRequestModule($request) != $adminModule) { return false; } if ($adminPageHelper->hasPageController($request)) { $controller = $adminPageHelper->getRequestController($request); $action = $adminPageHelper->getRequestAction($request); $controllerInstance = Mage::getControllerInstance('Mana_Admin_Controller', $request, $this->getFront()->getResponse()); // set values only after all the checks are done $request->setModuleName($adminModule); $request->setControllerName($controller); $request->setActionName($action); $request->setControllerModule('mana_admin'); for ($i = 3, $l = sizeof($p); $i < $l; $i += 2) { $request->setParam($p[$i], isset($p[$i + 1]) ? urldecode($p[$i + 1]) : ''); } // dispatch action $request->setDispatched(true); $controllerInstance->dispatch($action); return true; } else { return false; } } }