Thanks Mr Tufty, that worked a treat. Shame you have to create a route
for every controller, but at least it works!
Kevin, I think what you're doing is very similar to what I wanted to
do. So, if I understand it correctly, then you will need to create a
route for each controller.
Ian
On Feb 8,
Good information guys, thanks. I'm trying to do the opposite of Ian,
in a way. I would like to setup a route that connects a particular
controller if a request is made that is not found. Iow, something like
this:
domain.com/anythingyouwant => MyController
domain.com/hello_world => MyController
do
Thanks, I will give it a try
On 8 Feb, 11:31, "MrTufty" <[EMAIL PROTECTED]> wrote:
> Ok... not sure of the exact syntax of this, but give this a try:
>
> $Route->connect('/members/:action', array('controller' => 'members'));
>
> You may also want to go a completely different way round the problem
Ok... not sure of the exact syntax of this, but give this a try:
$Route->connect('/members/:action', array('controller' => 'members'));
You may also want to go a completely different way round the problem.
For a couple of sites I've developed with Cake so far, I've used the
following syntax (act
Hi
Thanks for your reply. I did actually try that, and it worked for the
specified controller action, but then it didn't work for other
actions. For example, site.com/members would go to the members index
action, but site.com/members/manage would look for a page called
manage that was a subpage o
I _think_, if you're going to make this work the way you expect it to,
you should specify the other controllers in routes above the final
routing.
So in your example you'd have:
$Route->connect('/members', array('controller' => 'members'));
Or something along those lines...
On Feb 8, 8:54 am,
Hi
I'm new to Cake, but loving it so far. I've been following the "Taking
advantage of Pages Controller" article on the bakery, but I'm confused
at the routing suggested there. I want to make the url's simpler by
removing the /pages/ but the way they suggest seems to break it for
the controllers.