On Mon, May 12, 2008 at 9:31 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
>  default plugin routing for index action on PizzaOrders controller in
>  pizza plugin:
>  www.example.com/pizza/pizzaOrders/index
>
>  Small change to:
>  www.example.com/pizza/orders/index

The pizza example is a little confusing because it uses pizza for the
controller name as well, which isn't necessary. To have the URL
structure you're looking for, just create a controller named
OrdersController. It'll automatically pull from the right place.

Alternatively, to help avoid class name conflicts, you can keep your
original class name and change it like so:

Router::connect('/pizza/orders/*', array('plugin'=>'pizza',
'controller' => 'pizza_orders'));

-Jonathan Snook

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to