This might help a bit better to begin with:
http://book.cakephp.org/view/544/Prefix-Routing

Basically prefix routing allows you to take a url in the form
of :prefix/:controller:/:action (In your case superadmin/products/
view) and map it to a action in the :controller called :prefix_:action
(In you case in the products controller you'll have superadmin_view)

On Jul 18, 8:41 pm, Karmu <[email protected]> wrote:
> Hi,
>  Thanks for the response, but I didn't understand what exactly Routing
> do.How is the routing flow. Please help.
>
> Regards,
> Karmendra
>
> On Jul 18, 7:30 pm, brian <[email protected]> wrote:
>
> > This might help:
>
> >http://bakery.cakephp.org/articles/view/secrets-of-admin-routing
>
> > On Sat, Jul 18, 2009 at 3:26 AM, Karmu<[email protected]> wrote:
>
> > > Hi All,
> > >  Cakephp follows excellent MVC architecture. I try to follow it to
> > > the max extent i can. But in some situations like following I need you
> > > expert suggestions. Thanks for reading further, to invest your
> > > precious time and  to share your knowledge.
>
> > > Problem Description:
> > >  I have two controllers with there respective models and views (add
> > > edit view delete)
> > > Controllers-
> > > 1. SuperAdmins
> > > 2. Products
>
> > > What I need is, when i am in Superadmin 
> > > pagewww.mysite.com/superadmins/productaction_list
> > > and I click view product it takes me to view action of Products (I use
> > > redirect method) and the url changes towww.mysite.com/products/view
>
> > > I do not want url to change to the type mentioned above. I want
> > > something likewww.mysite.com/superadmins/product_viewinstead
>
> > > Is this possible, I had a feeling that routing can do this tried
> > > reading it in manual but I didn't understand if I can achieve above
> > > using that?
>
> > > Regards,
> > > Karmendra
--~--~---------~--~----~------------~-------~--~----~
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