> How (if it's possible), can I limit the controllers allowed to go
> through the /training dir? I only have four controllers that I want
> to have access to the /training dir, all other requests should show an
> error, or better yet, redirect to the proper controller directory.
I'm not sure but something like this may work:
$trainingControllers = array( 'Things', 'Stuff' );
foreach ( $trainingControllers as $controller ) {
Router::connect("/training/$controller/:action/*",
array('controller' => $controller, 'action' => 'index'));
}
HTH,
- Dardo Sordi.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---