On Mon, Sep 14, 2009 at 12:36 PM, Dave Maharaj :: WidePixels.com <[email protected]> wrote: > > Yeah I tried that. Going with this as it seems to work. > > if ($status == 0) { > //Account is Pending admin approval; > $this->redirect(array('controller' => 'users', > 'action' => 'pending')); > exit(); > }
The default redirect implementation already includes an internal exit call[1]. Best regards. [1] http://api.cakephp.org/class/controller#method-Controllerredirect -- MARCELO DE F. ANDRADE Belem, PA, Amazonia, Brazil Linux User #221105 http://mfandrade.wordpress.com --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
