I'm having troubles getting this working the way I want it to.
I am using the prefix method (although I also tried the array method
with equally false results) an I have my router set up like this:
$params = array(
'prefix' => 'training' ,
'controller' => 'lessons' ,
'action' => 'index' ,
'training' => true ,
);
Router::connect('/training', $params);
Router::connect('/training/:controller', $params);
Router::connect('/training/:controller/:action/*', $params);
With the 'training' => true section commented out, all the links on
the site get the /training section added to the URL, which is wrong.
With that section not commented out (as above), none of the cake
generated links get the /training portion of the URL, which is also
wrong.
I want it to behave exactly like /admin, where, if I am currently in
the /admin portion of the site, all cake generated links get /admin
added to the URL. And if I am not in /admin, the links behave
normally.
As it is right now with /training, it's either one way or the other,
not the way it's supposed to be.
Is there something I'm doing wrong?
I also have my views and methods in my controllers set up properly
(with the training_ prefix added to views and methods).
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---