Hi All,

I've had a read of the cake/libs/router.php file and noticed a handy route
connect:

               $this->connect('/bare/:controller/:action/*', array('bare' =>
'1'));

I could use this, even more so if it respected the CAKE_ADMIN prefix. Any
ideas if it can be done or how I'd need to modify the above for it to work?
I was thinking something along the lines of:

$this->connect('/bare/' . CAKE_ADMIN . '/:controller/:action/*', array(
'bare' => '1', 'admin' => '1',  ) );

... placed above the current connect call for /bare/. Of course this would
mean you couldn't have an AdminController, and I'm missing something (a
regex, perhaps?) as I'm not sure how to set the action to be CAKE_ADMIN
concatenated with '_' . :action. maybe instead of /bare/ it could be called
'/bare_' . CAKE_ADMIN     or something?

Thanks in advance!

- Gonzalo

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to