Alright, I got the whole ACL thing set up. I think. Auth component
works like a charm.

I read the tutorials on lemoncake and added the Acl behaviour to my
User and Group model. So AROs are managed automatically, no problems
here.

ACOs are still giving me a hard time. I want to be able to set
permissions on whole controllers and single actions (or methods). The
ACO pattern on lemoncake suggested this structure:

ROOT
|-Controller1
  |-index
  |-action1
  |-action2
|-Controller2
  |-index
  |-action1

Since it made perfect sense for me, I adapted this structure for my
Users controller (first number is the id, first word is the alias):

1 ROOT (parent_id: NULL)
2 |- User (parent_id: 1)
3 |-- index (parent_id: 2)
4 |-- add (parent_id: 2)
5 |-- edit (parent_id: 2)

Now I can still access for example /users/add although I didn't grant
any ARO access to any ACO. I thought setting "$this->Auth->authorize =
'actions';" in the app_controller.php (as described in the tutorial)
would be enough. Do I have to connect controllers/actions and ACOs
manually. I'm so close, I can feel it...

On 7 Okt., 18:58, michaaaa <[EMAIL PROTECTED]> wrote:
> Thanks, I already solved the problem earlier. The mysql.sock was
> located in: /Applications/MAMP/tmp/mysql/mysql.sock
> Now it finally works.
>
> On 7 Okt., 18:06, DrZippie <[EMAIL PROTECTED]> wrote:
>
> > You must have mysql installed and running.
>
> > When I Installed MySQL 5 in my iMac I got the same problem, with the
> > symbolic link I solved the problem.
>
> > Try to start mysql server, and search the mysql.sock with
>
> > locate mysql.sock
>
> > 2007/10/7, michaaaa <[EMAIL PROTECTED]>:
>
> > > On 7 Okt., 01:42, DrZippie <[EMAIL PROTECTED]> wrote:
> > > > In the terminal execute:
>
> > > > sudo mkdir /var/mysql
> > > > sudo ln -s /private/tmp/mysql.sock /var/mysql/mysql.sock
>
> > > I tried that, but the errors are still there, although the symbolic
> > > link was created (checked it with the terminal). However there seems
> > > to be no mysq.sock in /private/tmp/:
>
> > > Michas-Mac:~ micha$ ls /private/tmp
> > > 501                     amt.log                 cs_cache_lock_501
>
> > --
>
> >     Antonio Cortés (Dr Zippie)
>
> > "El ordenador es la evolucion logica del hombre: Inteligencia sin
> > moral": John Osborne.
> > "A nullo videbatur, ipse autem omnia videbat


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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