I'm having the same kind of problem. Still haven't found the answer

On Sep 29, 8:12 am, TGG008 <[EMAIL PROTECTED]> wrote:
> Hi,everyone! I've been involed in this problem days...
> in my routes.php I defined :Router::connect('/google/:id/*', 
> array('controller' => 'users',
> 'action' => 'view'));
>
> when browse /google/123    [any number]
> it display the page of 'controller' => 'users', 'action' => 'index'
> ---------------------------------
> while using:
> $a=Router::url(array('controller'=>'users', 'action'=>'view',
> 'id'=>100));
> I can get:
> /google/100
>
> ///////////////////////////////////////////////////////////////////
> I know using:Router::connectNamed(array('id'));
> andRouter:Router::connect('/google/*', array('controller' => 'users', 'action'
> => 'view'));
>
> this time :
> using:
> $a=Router::url(array('controller'=>'users', 'action'=>'view',
> 'id'=>100));
> I can get:
> /google/id:100
> and when browse the url : /google/id:100
> it's correct.
> /////////////////////////////////////////////////////////////////////
> So. How Can I get url like    /google/100
> and display the right action ..
>
> Thanks~~


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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