[eluser]Kobus M[/eluser]
[quote author="wiredesignz" date="1340179515"][quote author="macigniter" date="1340177061"]... Is it possible to put /config, /libraries, /language and /helper folders/files in the module directory? ...[/quote]
Absolutely yes.
Ensure you extend the MX_Controller class if using HMVC features. Otherwise use the "module/file" format when loading resources.[/quote]
Hi Wiredesignz,
Thanks again for the plugin. It generally works very well for me, but I am really struggling with routing inside my modules.
I have routes like this in my main application/config/routes.php file
$routes['login'] = 'user/login';
So, when I go to site.com/login, I get the login screen defined in the user module.
Moving this to /modules/user/config/routes.php does not work. No permutation of this in any way. I have tried:
$routes['user'] = 'user/login';
$routes['login'] = 'user/login';
$routes['user/login'] = 'user/login';
$routes['user'] = 'user'; //index function calls login function, so site.com/user takes me to login.
$routes['login'] = 'user';
$routes['user/login'] = 'user';
From the sources I could find, it seems like I have to use this kind of format:
$routes['user'] = 'user/login';
This does it work for me. I want to put the routes.php in my user module's config directory, and go to site.com/login which will take me to site.com/user/login. I have done some checking and found that site.com/login is looking for a module called "login" which does not exist.
I am getting a 404 error, regardless of which combination I try above.
How can I make this work? Is this possible at all?
Regards,
Kobus