Part of the EllisLab Network
   
 
Matchbox RC2 routing problem
Posted: 02 February 2010 06:23 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  94
Joined  02-08-2009

Hi,

I was using older version of matchbox. It was having a feature that
if you create a controller with same name as module name you don’t need to call it twice. For example if you have a module with name “admin” and a controller “admin.php” in it then if you type this in your browser:

index.php/admin/somefunc then it will work fine.

But now I installed matchbox RC2(because I wanted to use auto loading library feature).
If I type index.php/admin—-> then it runs code of index.php/admin/admin/index

But if I type index.php/admin/index then it shows 404 error; To run the code of my index function I have to write either index.php/admin or index.php/admin/admin/index.

Even If I place this code $route[‘admin/index’] = “admin/admin/index”;
in my router.php file it not works.

Please help

 Signature 

Windows, Linux, Internet Tips and Tricks
A Blog on Web Development: HTML,CSS,PHP etc

Profile
 
 
Posted: 10 March 2010 07:36 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  44
Joined  09-10-2009

Hi, I’ve the same problem, I hope somebody help us.

Profile