Thanks again,

Long night. I had it above the rest as you mentioned...i was trying to
access "register" when logged in and wondering why cant I get to the
register page....because already registered redirect... :)

Thanks,

Dave

-----Original Message-----
From: Miles J [mailto:[email protected]] 
Sent: April-18-09 12:19 AM
To: CakePHP
Subject: Re: Routes


Put Router::connect('/agents/register', array('controller' => 'agents',
'action' => 'register')); infront of the other routes.

If its put after it, it wouldnt get called because the first route takes
precedence.


--~--~---------~--~----~------------~-------~--~----~
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