Try throwing an "exit();" or "die();" after you render the 'pending' view.
- Jamie On Sep 14, 8:21 am, "Dave Maharaj :: WidePixels.com" <d...@widepixels.com> wrote: > I have a simple check in my beforeFilter > > function beforeFilter() { > parent::beforeFilter(); > $this->Auth->autoRedirect = false; > $status = $this->Session->read('Auth.User.status'); > > if ($status == 0) { > //echo 'Account is Pending'; > $this->render('pending'); > > } > > } > > But all the queries for the page trying to be viewed are still being run > when I turn debug to 2. I just want a simple page to display saying pending > which it does without any queries being executed. > > How can I kill the queries if the status == 0? > > Thanks, > > Dave --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---