cakephp - how use Acl to limit user access -


i have same login 3 different type of users, admin/client/user, has different layout , privileges issue after login every 1 able access pages. after lot of search on google , stack overflow decided use acl. created tables in database via right procedure recommended acl given here accesscontrollist. set permission in following way. still type of user accessing pages.

$this->acl->allow(         array('model' => 'user', 'foreign_key' => 1),           'admins'         );     $this->acl->allow(         array('model' => 'user', 'foreign_key' => 2),           'clients'         ); 

any appreciated.


Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -