Hi Jaime.
I Found my mistake. I missed the generic pages route, hidden between
comments. The router catches the first matching route, which was too
generic. Switching the place in the source code does the trick.
Specials first, generic last.
Now I have another problem (indirect with routing):
echo $form->create(NULL, array("controller"="requests",
"action"=>"edit", "band", $id));
produces following url:
/requests/edit/12/band/12
The first 12 should not be there. Is this a normal behaviour of the
form helper?
because the first 12 is not expected, my routes won't work...
I think this is a bug. Can someone confirm that?
Regards,
Alexander
On 5 Sep., 01:33, Jaime <[EMAIL PROTECTED]> wrote:
> I'm afraid I don't understand your question. I tried your example and
> I got a link to /neue_anzeige, as expected.
>
> If you want to pass a parameter to the controller, try:
>
> Router::connect(
> '/neue_anzeige/:day',
> array(
> 'controller'
> => 'pages',
>
> 'action'=>'display'
> )
> );
>
> Then check $this->params['day'] in the controller. It holds whatever
> you appended to the /neue_anzeige/ url.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---