Welcome Guest, Not a member yet? Register   Sign In
HMVC problem: routes.php within module config dir not working
#1

[eluser]Mr. Pickle[/eluser]
I have a weird problem when using HMVC.
I have a module called news. I use a multilingual site, so I have the following in application/config/routes.php:
Code:
$route['es/news'] = 'news/index'; // Make sure the spanish news also uses this module

This works perfect, it loads the news module.
Now I want to re-route certain news url's and I want to do this within the module application/modules/news/config/routes.php:
Code:
$route['(es|en)/(:num)/(:any)'] = 'news/detail/$2';

The problem is the second re-route is not performed. If I copy the exact same line to the main routes.php it works without a problem. I wanted to be sure the routes.php within a module would be loaded so I did a echo with dummy text. This text appears on my page so the routes.php within the module directory IS being loaded.


Messages In This Thread
HMVC problem: routes.php within module config dir not working - by El Forum - 05-18-2011, 02:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB