Copy the pages_controller.php file to the cake / libs / controller files in the / controller / dir application. Then you can change it to do whatever you want. Using the auth component, a typical way to allow specific access is as follows:
class PagesController extends AppController { ... function beforeFilter() { $this->Auth->allow( 'action1', 'allowedAction2' ); } ...
I recommend that you copy the file to the directory of your controller, rather than editing it in place, because it will simplify updating the cake and most likely you will accidentally overwrite some things.
Travis leleu
source share