I have two module frontend, admin, my in router
$router->removeExtraSlashes(true);
/*===========================Frontend=====================================*/
$router->setDefaultModule("frontend");
$router->setDefaultAction("index");
$router->setDefaultController("index");
/*=============================Backend====================================*/
$router->add("/admin", array(
'module' => 'admin'
));
$router->add('/admin/:controller', array(
'module' => 'admin',
'controller' => 1,
'action' => 'index',
));
$router->add('/admin/:controller/:action', array(
'module' => 'admin',
'controller' => 1,
'action' => 2,
));
$router->add(
"/admin/:controller/:action/:params",
array(
'module' => 'admin',
"controller" => 1,
"action" => 2,
"params" => 3,
)
);