Hi Mark,

I followed Dardos advice and did everything first in a small test application, 
learned something and hurray... There it worked, even when I renamed "Group" to 
the German "Gruppe".
Now I start my second approach with my real application but I first got the 
mesage from auth, that my login is invalid. Then I set in the 
users_controller.php 

        function beforeFilter() {
                parent::beforeFilter();
                $this->Auth->allowedActions = array('*');
        }
or
        function beforeFilter() {
                parent::beforeFilter();
                $this->Auth->allowedActions = array('login');
        }
Now I get the blank page even with debug level set to 3.

I thought maybe I have messed up my permissions and deleted all of the db 
entries in aros_acos except the one which allows the admins access to 
everything, but that makes no difference either.

What I did different from the tutorial is, that I didn't allow index and view, 
because in my application only the login or static pages are allowed without 
logging in.

Any idea what went wrong?

Thank you in advance

Anja


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[EMAIL PROTECTED] Im Auftrag von 
mark_story
Gesendet: Donnerstag, 13. November 2008 15:14
An: CakePHP
Betreff: Re: Acl + Auth and now all I see is a blank page


If you are getting a 'blank' as in white screen, probably a parse or other 
fatal error.  Turn on debug to 2 to see the errors.

-Mark

On Nov 12, 10:40 am, "Liebermann, Anja Carolin"
<[EMAIL PROTECTED]> wrote:
> Hello everybody,
>
> I followed this 
> tutorialhttp://manual.cakephp.org/view/641/Simple-Acl-controlled-Appli
> cation
>
> And tried to adapt it for my application (which isn't simple at all
> anymore: about 70 controllers). After doing everything, I cannot sse 
> my login page. It is just a completely blank page although I have put 
> in my users_controller.php
>
>         function beforeFilter()
>         {
>                 parent::beforeFilter();
>                 $this->Auth->allowedActions = array('*');
>         }
>
> The same in my groups controller.
>
> In my app_controller.php  I have:
> function beforeFilter() {
>     //Configure AuthComponent
>     $this->Auth->authorize = 'actions';
>     $this->Auth->allowedActions = array('display');
>     $this->Auth->loginAction = array('controller' => 'users', 'action'
> => 'login');
>     $this->Auth->logoutRedirect = array('controller' => 'users', 
> 'action' => 'login');
>     $this->Auth->loginRedirect = array('controller' => 'hotels', 
> 'action' => 'index');
>
> }
>
> The file app_controller is placed in the app/ folder on the same level 
> like the model and controller folder.
>
> Any idea what went wrong?
>
> Group is Gruppe in German and I adapted the code, models, controllers 
> accordingly. Or do groups have to be named groups, like the loginname 
> has to be username?
>
> Thank you in advance!
>
> Anja


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to