Thanks for this. And thanks Brian for the comment. Is it not better to redirect the user though, so that they see that the action doesn't exist (and any search engines can too)?
T On Apr 6, 12:08 am, Miles J <mileswjohn...@gmail.com> wrote: > Besides using the index action, there is no such feature. You could > however do something like this: > > function beforeFilter() { > if (!in_array($this->params['action'], get_class_methods($this))) { > $this->redirect(); // to some action > } > > } --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---