如何允许访问CakePHP 2中的“页面”

At controllers we can do it with:

public function beforeFilter() {
    parent::beforeFilter();     
    $this->Auth->allow('add', 'view', 'edit', 'index', 'verify', 'delete'); 
}

But how to do it on a Page whose controller is by default PageController? I have tried the same that I use in other controllers and it doesn't work.

You need to copy the PagesController to your app folder and then you can edit it there.

So in lib/Cake/Controller copy the file PagesController.php to app/Controller.

You can than edit this file to control the static pages you have.