Sunday, November 4, 2012

Acl::check() the $action parameter and the default vals , what does that mean?

Hello folks :)
I don't understand what does $action param and its default values mean? Because i can directly write $this->Acl->check("warriors/Aragorn", "ControllerNames/myMethodName") then it works, i don't need to supply $action param.

Then if i do something like at the manual $this->Acl->check('warriors/Aragorn', 'Weapons', 'create'); which method in my WeaponsController class categorized as 'create' ? .
Then suppose i have
reloadAmmunition() method in my WeaponsController class. So what reloadAmmunition() is? a create or read or update or a delete? Please somebody help me, i need your enlightenment.

Thank You :)

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: