Re: change route after authroize users

2009-08-31 Thread AgBorkowski
> oh, I get what you mean. You want to display different content for loggen in > and guest users. > > You know, it's so hard to do that, but the key to cakePHP is that you > actually need to think simple. I mean not programmer's simple, but - simple. > > What I did is I used a different layout! g

Re: change route after authroize users

2009-08-31 Thread Aivaras
oh, I get what you mean. You want to display different content for loggen in and guest users. You know, it's so hard to do that, but the key to cakePHP is that you actually need to think simple. I mean not programmer's simple, but - simple. What I did is I used a different layout! Sounds crazy, b

Re: change route after authroize users

2009-08-31 Thread AgBorkowski
i know that but i want change general route '/' so yes your trick witch redirect working after user did login but after even go to / load default general route from / but i'll try user Route::conntect in login() :) On 31 Sie, 10:32, Aivaras wrote: > Hey, > > did you take a look at thishttp://bo

Re: change route after authroize users

2009-08-31 Thread Aivaras
Hey, did you take a look at this http://book.cakephp.org/view/391/loginAction ? Faifas On Mon, Aug 31, 2009 at 11:05, andrzejborkow...@gmail.com < andrzejborkow...@gmail.com> wrote: > > i want to change default route after login my users, i try like this: > > [/project/app_controller.php] > pu

change route after authroize users

2009-08-31 Thread andrzejborkow...@gmail.com
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(