Welcome Guest, Not a member yet? Register   Sign In
Can't call the right action
#8

[eluser]Mirage[/eluser]
Ok, found the problem... duh!

You are calling the read controller in the mail directory. BUT your first parameter - which defines the action - is '2'. You don't have a method called '2'. Therefore it fails.

If you change your url to: http://plume-conception.ath.cx/exotech/m...ad/index/2 then it will work.

Your use of controllers/actions is a bit unusual. You would perhaps be better of using a 'mail' controller, with a 'read' action. If you must make your own controller I suggest one of the following:

1. Add a route to your routes.php file:
Code:
$route['.*mail/read(.*)']='mail/read/index$1';
or

2. Add a _remap method to your controller and evaluate things in there, finally mapping to the proper function.

Not knowing your specific goals, I'd highly recommend creating a mail controller with a read action rather than creating separate controllers for each action.

Let me know how it goes....

Cheers,
-m


Messages In This Thread
Can't call the right action - by El Forum - 10-11-2008, 11:48 AM
Can't call the right action - by El Forum - 10-11-2008, 12:01 PM
Can't call the right action - by El Forum - 10-11-2008, 01:12 PM
Can't call the right action - by El Forum - 10-11-2008, 01:55 PM
Can't call the right action - by El Forum - 10-11-2008, 02:11 PM
Can't call the right action - by El Forum - 10-11-2008, 02:43 PM
Can't call the right action - by El Forum - 10-11-2008, 02:56 PM
Can't call the right action - by El Forum - 10-11-2008, 03:09 PM
Can't call the right action - by El Forum - 10-11-2008, 03:14 PM
Can't call the right action - by El Forum - 10-11-2008, 03:47 PM
Can't call the right action - by El Forum - 10-11-2008, 04:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB