You are welcome :) Joh On 7 February 2010 06:24, Hussain <[email protected]> wrote: > Thanks for you solution! It helps me a lot. > here is my solution: > function login() { > //-- code inside this function will execute only when > autoRedirect > was set to false (i.e. in a beforeFilter). > if ($this->Auth->user()) { > if( !(empty($this->data)) ){ > $this->User->id = $this->Auth->user('id'); > $this->User->saveField('last_login', > date('Y-m-d H:i:s') ); // > updating last_login field. > //$this->redirect($this->Auth->redirect()); > } > > $this->redirect($this->Auth->redirect()); > } > > } > Thanks again. [snip]
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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
