Part of the EllisLab Network
   
 
Matchbox RC2 routing problem
Posted: 02 February 2010 05:23 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  90
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 06:36 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  41
Joined  09-10-2009

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

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 819, on March 11, 2010 11:15 AM
Total Registered Members: 149026 Total Logged-in Users: 34
Total Topics: 103297 Total Anonymous Users: 1
Total Replies: 516931 Total Guests: 319
Total Posts: 620228    
Members ( View Memberlist )