routes.php in HMVC not working |
[eluser]Unknown[/eluser]
Hi everyone, I have created a administration module, if i type Quote:http://localhost/administration/login, its succesful redirecting to the administration module and loading the login controller, but now i want to define the login controller as the default controller, that way if i type Quote:http://localhost/administrationthe login method should be loaded. I know that its posible to have the same application folder structure within the module folder, so i have created a config folder and within it a routes.php file whit this content: Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); But this is not working, what i a missing ?
[eluser]wiredesignz[/eluser]
This is described in the Modular Extensions - HMVC documentation. Quote:Each module may contain a config/routes.php file where routing and a default controller can be defined for that module using: ie: {modules}/administration/config/routes.php Code: $route['administration'] = 'login';
|
Welcome Guest, Not a member yet? Register Sign In |