Hi,
I am a beginner of Zend framework, had just gone through a couple of books before 1.8.0 showed up. Now I have finished doing the quickstart, and everything works fine.

When trying to get going with the Acl and Auth I pretty much get stuck from start.

I am a little confused on how to initialize the stuff in bootstrap and where to place the files.

Previously I just added the following lines to index.php

   $auth = Zend_Auth::getInstance();
   $auth->setStorage(new Zend_Auth_Storage_Session());
   ....
   $controller->registerPlugin(new CustomControllerAclManager($auth));

I also had a custom controller extending the Zend Controller Action, which had a predispatch function as

   public function preDispatch()
       {
           $auth = Zend_Auth::getInstance();
           if ($auth->hasIdentity()) {
               $this->view->authenticated = true;
               $this->view->identity = $auth->getIdentity();
           }
           else
               $this->view->authenticated = false;
       }

I guess that is not the best way to pull it off.

Do you experts have any tutorial for 1.8.0 and Acl/Auth setup?
Or could you give some tips and pointers?

An additional question regarding the application.ini is can I see a list of possible values somewhere, i.e., how do I know it is possible to set resources.xxx etc. ?

Best regards,
Joakim

Reply via email to