Hello everybody,

i cant believe it. I solved my last problem with Scaffold and now ive
a new one.

I add in my AppController an Auth and allow it to all my functions:
class AppController extends Controller {
   var $components = array('Acl',
                                    'Auth' => array(
                                        'authError' => 'Did you really think 
you are allowed to see
that?',
                                        'authenticate' => array('Form'),
                              ), 'Session');

      function beforeFilter(){
        $this->Auth->allow('*');
      }
}

Now in my Scaffold page:

class CommentsController extends AppController{
  public $scaffold;

}

i cant view the scaffold page without login. I Always redirect me to /
users/login.

I Try in the CommentsController:

function beforeFilter() {
        parent::beforeFilter(); //

        $this->Auth->allowedActions = array('login', 'logout');
        $this->Auth->autoRedirect = false;
    }
}

But it didn't works too.

How can i solve my problem?

Kind Regards
Steffen

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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

Reply via email to