Module Routing |
[eluser]xtremer360[/eluser]
I have he following url for my codeigniter application and I'm trying to find out how I can view this specific controller with the url. The my-project is what is used for my cms and the "admin" url segment is a variable representing a section of the cms area, "users" is the module from which I need to get the admin.php file for. I am using the wiredesignz 3rd page HMVC plugin into this application. testsitehere.com/my-project/admin/users Code: -application I have tried the following route but still received the 404 error page. Code: $route['my-project/:any/:any'] = '$1/$2/admin'; What am I doing wrong for it to not work?
[eluser]ivantcholakov[/eluser]
Your example is wrong. Have a look at this real-life configuration file routes.php and adapt it for your case. Leave the lines that you need. Code: $route['default_controller'] = 'home';
[eluser]ashish64[/eluser]
[quote author="xtremer360" date="1391471045"]I have he following url for my codeigniter application and I'm trying to find out how I can view this specific controller with the url. The my-project is what is used for my cms and the "admin" url segment is a variable representing a section of the cms area, "users" is the module from which I need to get the admin.php file for. I am using the wiredesignz 3rd page HMVC plugin into this application. testsitehere.com/my-project/admin/users Code: -application I have tried the following route but still received the 404 error page. Code: $route['my-project/:any/:any'] = '$1/$2/admin'; What am I doing wrong for it to not work?[/quote] you and i have same problem i think. still no solutions check my issue http://ellislab.com/forums/viewthread/242694/
[eluser]InsiteFX[/eluser]
In HMVC if you name the controller the same as the module directory name you do not need a root for it. Also make sure you add this to your application/config/config.php file Code: /* |
Welcome Guest, Not a member yet? Register Sign In |