On Apr 20, 2:49 pm, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> On Apr 20, 2:27 pm, AD7six <[EMAIL PROTECTED]> wrote:
>
>
>
> > On 20 abr, 14:10, "[EMAIL PROTECTED]"
>
> > <[EMAIL PROTECTED]> wrote:
> > > Hi all, im doing an application which is based on several plugins, but
> > > the plugins system doesnt work correctly. I have added a route like
> > > this:
>
> > > $Route->connect('/myplugin/:controller/:action', array('plugin' =>
> > > 'myplugin', 'controller' => 'tests', 'action' => 'index'));
> > > (i know the controller and action parameters arent needed as those are
> > > part of the url path)
>
> > > on file basic.php the loadPluginXXX(foo, bar) aren't consistent,
> > > sometimes it receives the plugin name like "Myplugin" (camleized)
> > > other times like "myplugin" (underscored?).
>
> > > on file dispatcher.php (line ~94) when the loadPluginController is
> > > called it swaps the paramenters, the controller at the beginning and
> > > the plugin at the end. it also passes the underscored plugin instead
> > > of the camelized. so on LoadPluginController it tries to find a
> > > controller file name based on a camelized path, which isnt correct.
>
> > > same happens in other places, so Myplugin controllers/models/whatever
> > > are never called, not even loaded, i had several errors, i already fix
> > > it but dunno if i should send a patch, or just post a ticket?
>
> > I pretty much only use plugins, and don't have the problem you are
> > describing. what version of cake (include the REVISION), and does it
> > work without your funky routes (which are probably the cause ;) )?
>
> The version is 1.1.14.4797, ive been searching for a route to use a
> plugin, but couldnt found one, so i end up with that :)
> do you have nay other route i can test?

The route you pasted, is virtually the same as what cake does by
default. What are you wanting to define and why? Adding routes when
you don't need to is an unnecessary complication.

If you /do/ want to actually customize things, and I don't know if
this is obsolete now, I wrote this a while ago
http://www.noswad.me.uk/MiBlog/Blogs/view/PluginRoutes

cheers,

AD


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