From: "barduck" <zevel+goo...@klunsk.com>
Date: Wed, 28 Feb 2007 09:37:51 -0000
Local: Wed 28 Feb 2007 09:37
Subject: Please help me understand URL and Routes in Cake
Hi, I am trying to understand how friendly URLs and "Routes" work in Cake I am familiar with url rewriting from other platforms where I used a I assume that the major purpose of the Routes is to map URLs to Questions: 1. I've seen a colon (:) used in the manual in routes config (like / And now to a real example: Suppose I have a Model called Unit, so I would like to have a view to So, I'd like to have the following URLs I defined the following Routes: $Route->connect('/units', array('controller' => 'units', 'action' => So far everything works fine. Now I would like to accomplish 2 additional things: 1. Have parameters passed to the /units/ index view (like filters and 2. I would like to be able to pass multiple units to the index view How do I define unknown count of parameters in Routes and how do I do Hope I am making myself clear. Sorry for the long message. Thanks in advance! - barduck You must Sign in before you can post messages.
To post a message, you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||