Quick question... I'm trying to assign a route to a controller, both
in the case of admin urls and without. Is there an easy way to
consolidate these two lines?
Router::connect('/admin/bulletin/:action/*', array('plugin' =>
'newsletter', 'controller' => 'newsletter', 'prefix' => 'admin'));
Router::connect('/bulletin/:action/*', array('plugin' => 'newsletter',
'controller' => 'newsletter'));
I thought something like this might work, but didn't know how to
finish it:
Router::connect('/(admin/)?bulletin/:action/*', array('plugin' =>
'newsletter', 'controller' => 'newsletter', 'prefix' => 'admin'));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---