Similiar to what I had in mind, thanks for the input nevertheless :)
*thumbs up*
Jacek
Stinkbug pisze:
> I believe the proper MVC way to do it is to do the check in your
> controller and set the variables for you view. So in your controller
> you might have something like this:
>
> if ($this->
I believe the proper MVC way to do it is to do the check in your
controller and set the variables for you view. So in your controller
you might have something like this:
if ($this->Acl->check(your acl info)) {
$this->set('admin', true);
}
Then in your view you would simple check the $admin
Hello all,
just happily finished setup of group-based ACL in my app, thanks to
brilliant tutorial on Cake site.
Nevertheless, despite looking around I haven't found any way (known to a
noob like me) to use a function similiar to $this->Acl->check() in View,
for, say, hiding certain sections o