Hey,

did you take a look at this http://book.cakephp.org/view/391/loginAction ?

Faifas


On Mon, Aug 31, 2009 at 11:05, [email protected] <
[email protected]> wrote:

>
> i want to change default route after login my users, i try like this:
>
> [/project/app_controller.php]
> public function beforeFilter() {
> (...)
>        if($this->Auth->user()){
>                Router::connect('/', array('controller' => 'users', 'action'
> => 'profile'));
>                Router::promote();
> }
>
> but it dont work and still active first default route form route.php..
>
>
> >
>

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