I think you'll find in CakePHP 1.2, a controller name that matches the plugin 
name will route fine as:

/root/:plugin/:action

as long as :controller is the same string as :plugin

Cheers,

Graham Weldon
e. gra...@grahamweldon.com
p. +61 407 017 293
w. http://grahamweldon.com


On 17/04/2010, at 12:20 PM, Miles J wrote:

> Neither of you are correct, or are referring to the wrong thing.
> 
> @jacmoe - Its /root_url/plugin_name/plugin_controller/plugin_action/
> not /root_url/plugin_name/plugin_action/.
> 
> And I quote the book: "Once a plugin has been installed in /app/
> plugins, you can access it at the URL /pluginname/controllername/
> action. In our pizza ordering plugin example, we'd access our
> PizzaOrdersController at /pizza/pizzaOrders."
> 
> @AD7Six - Prove me wrong? You cant go to /plugin_name/ and have it
> work without defining the controller in the URL or setting up a route
> to match it. I ran into this exact problem with my forum plugin, so I
> have test cased it.
> 
> On Apr 16, 4:22 pm, jacmoe <jac...@mail.dk> wrote:
>> If you read the book, it is indeed root_url/plugin_name/plugin_action,
>> so check your sources before you're telling people that they are
>> telling the wrong thing. :)
>> 
>> http://book.cakephp.org/view/1113/Plugin-Controllers
>> 
>> On Apr 16, 9:47 pm, AD7six <andydawso...@gmail.com> wrote:
>> 
>> 
>> 
>>> On Apr 16, 9:39 pm, Miles J <mileswjohn...@gmail.com> wrote:
>> 
>>>> You are doing it wrong, the URLs would be like so:
>> 
>>>> domain.com/controller/action/
>>>> domain.com/plugin/controller/action/
>> 
>>>> You cant go to domain.com/plugin/ and have it work without setting up
>>>> routes.
>> 
>>> Since when. I'd suggest checking the book and/or test cases before
>>> telling people they're doing it wrong.
>> 
>>> Check out the new CakePHP Questions sitehttp://cakeqs.organdhelp others 
>>> with their CakePHP related questions.
>> 
>>> You received this message because you are subscribed to the Google Groups 
>>> "CakePHP" group.
>>> To post to this group, send email to cake-php@googlegroups.com
>>> To unsubscribe from this group, send email to
>>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>>> athttp://groups.google.com/group/cake-php?hl=en
>> 
>> Check out the new CakePHP Questions sitehttp://cakeqs.organd help others 
>> with their CakePHP related questions.
>> 
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com For more options, visit this group 
>> athttp://groups.google.com/group/cake-php?hl=en
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
> 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to