Cita:
Iniciado por GatorV ¿Podrías poner tus routes? Al parecer el problema puede venir de ahí...
Hola
GatorV, dejo los routers
Código PHP:
Ver original//bootstrap
protected function _initRoutes()
{
$frontController = Zend_Controller_Front::getInstance();
$router = $frontController->getRouter();
$router->removeDefaultRoutes();
$lang = '([a-zA-Z]{2})';
$module = '(?:(\w+))';
$controller = '(?:(\w+))';
$action = '(?:(\w+))';
$param = '(?:(\w+))';
//Route index
$router->addRoute(
'default', new Zend_Controller_Router_Route_Regex(
'es/auth/secure/login/' . $param,
'lang' => 'es',
'module' => 'auth',
'controller' => 'secure',
'action' => 'login'
),
1 => 'lang',
2 => 'module',
3 => 'controlelr',
4 => 'action'
),
'%s/%s/%s/%s/')
);
//Route index
$router->addRoute(
'ind', new Zend_Controller_Router_Route_Regex(
'(.*)',
'lang' => ':lang',
'module' => 'default',
'controller' => 'index',
'action' => 'index'
),
'/')
);
//Route lang
$router->addRoute(
'lan', new Zend_Controller_Router_Route_Regex(
$lang,
'lang' => ':lang',
'module' => 'default',
'controller' => 'index',
'action' => 'index'
),
1 => 'lang'
),
'%s/')
);
//Route lang/module
$router->addRoute(
'lanmod', new Zend_Controller_Router_Route_Regex(
$lang . '/' . $module,
'lang' => ':lang',
'module' => ':module',
'controller' => 'index',
'action' => 'index'
),
1 => 'lang',
2 => 'module'
),
'%s/%s/')
);
//Route lang/module/controller
$router->addRoute(
'lanmodcon', new Zend_Controller_Router_Route_Regex(
$lang . '/' . $module . '/' . $controller,
'lang' => ':lang',
'module' => ':module',
'controller' => ':controller',
'action' => 'index'
),
1 => 'lang',
2 => 'module',
3 => 'controller'
),
'%s/%s/%s/')
);
//Route lang/module/controller/action
$router->addRoute(
'lanmodconact', new Zend_Controller_Router_Route_Regex(
$lang . '/' . $module . '/' . $controller . '/' . $action,
'lang' => ':lang',
'module' => ':module',
'controller' => ':controller',
'action' => ':action'
),
1 => 'lang',
2 => 'module',
3 => 'controller',
4 => 'action'
),
'%s/%s/%s/%s/')
);
//Route lang/module/controller/action/param1
$router->addRoute(
'p1', new Zend_Controller_Router_Route_Regex(
$lang . '/' . $module . '/' . $controller . '/' . $action . '/' . $param,
'lang' => ':lang',
'module' => ':module',
'controller' => ':controller',
'action' => ':action',
'param1' => ':param1'
),
1 => 'lang',
2 => 'module',
3 => 'controller',
4 => 'action',
5 => 'param1'
),
'%s/%s/%s/%s/%s')
);
//Route lang/module/controller/action/param1/param2
$router->addRoute(
'p1p2', new Zend_Controller_Router_Route_Regex(
$lang . '/' . $module . '/' . $controller . '/' . $action . '/' . $param . '/' . $param,
'lang' => ':lang',
'module' => ':module',
'controller' => ':controller',
'action' => ':action',
'param1' => ':param1',
'param2' => ':param2'
),
1 => 'lang',
2 => 'module',
3 => 'controller',
4 => 'action',
5 => 'param1',
6 => 'param2'
),
'%s/%s/%s/%s/%s/%s')
);
//Route lang/module/controller/action/param1/param2/param3
$router->addRoute(
'p1p2p3', new Zend_Controller_Router_Route_Regex(
$lang . '/' . $module . '/' . $controller . '/' . $action . '/' . $param . '/' . $param . '/' . $param,
'lang' => ':lang',
'module' => ':module',
'controller' => ':controller',
'action' => ':action',
'param1' => ':param1',
'param2' => ':param2',
'param3' => ':param3'
),
1 => 'lang',
2 => 'module',
3 => 'controller',
4 => 'action',
5 => 'param1',
6 => 'param2',
7 => 'param3'
),
'%s/%s/%s/%s/%s/%s/%s')
);
}
Saludos,