Hey all,

I have an application that has been running for a while using admin routing.
There are normal users as well as admin users.

Now the application is growing and I need to create separate judging routes
for judges that will log in and moderate the submissions.

In my *core.php* I have the following line:

Configure::write('Routing.admin', 'admin');

To which I added the new one:

Configure::write('Routing.judge', 'judge');

In my *routes.php* I have the following route:

Router::connect('/admin', array('controller' => 'submissions', 'action' =>
'control', 'admin' => true), array('language' => 'us'));

To which I added the judging one:

Router::connect('/judge', array('controller' => 'submissions', 'action' =>
'control', 'judge' => true), array('language' => 'us'));

*submissions_controller.php* has the admin_control function which works. The
judge_control does not.

In fact the whole route is broken. Upon trying to access *site.com/judge* I
get the error about SubmissionsController:control() not found.

Does anyone know why it would not be trying to access
SubmissionsController:judge_control() ?

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

To unsubscribe, reply using "remove me" as the subject.

Reply via email to