Ahhh I think no.

Ok if my url is : http://localhost/[cake]/[app]/abc
how can I got "abc" value in routes.php

Thank you very much.

On Sep 17, 5:00 pm, "Dr. Loboto" <[email protected]> wrote:
> routes.php is called BEFORE actual routing so there is no any URL
> parse info on this step. Looks like you choosed wrong place to do what
> do you need.
>
> On Sep 17, 2:15 pm, enjoyman <[email protected]>
> wrote:
>
> > Ok I think I know how can I use controller, plugin and action but it
> > not fix my problem.
>
> > My problem is I don't know what is current controller,plugin or
> > action. I want to know current controller,plugin or action in file
> > routes.php to check and do something besides the routing.Such as
> > include other files in routes.php on the condition of controller or
> > plugin, exp: routes.php in any controller if I created it.
>
> > On Sep 16, 9:22 pm, Martin Westin <[email protected]> wrote:
>
> > > If the names conflict the plugin has precedence.
>
> > > I thinks these are right:
>
> > > /abcs =
> > > 1. index on abcs controller in abcs plugin (aka the pluginname
> > > controller)
> > > 2. index on abcs controller in app
>
> > > /abcs/cba =
> > > 1. index on cba controller in abcs plugin
> > > 2. cba on abcs controller in abcs plugin (aka the pluginname
> > > controller)
> > > 3. cba on abcs controller in app
>
> > > and so on.
>
> > > On Sep 16, 12:42 pm, enjoyman <[email protected]>
> > > wrote:
>
> > > > I want to do something in routes.php but now I don't know what plugin
> > > > or what controller for now.
>
> > > > If my url is :http://localhost/[cakephp] /[APP] /abc I need to get
> > > > "abc" as my now position, how can I do that?
>
> > > > another problem is : I dont know if controller name same plugin name ,
> > > > if I access my app by url:http://localhost/[cakephp] /[APP] /abcs
>
> > > > and if my controller name is "abcs" and my plugin is same name,"abcs",
> > > > I want to know the order , what section that cakephp access before and
> > > > after?
>
> > > > Thank you for advance.
--~--~---------~--~----~------------~-------~--~----~
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