multiple controller with sigle access control

Hi,

there is a way to have multiple controllers but only one access control so that i have to log only one time_

Thanks,

Riccardo

Can you be more specific?

I would like to have 2 ore more controllers for my application but with a single access control point so that logging one time enable the user to use all functions of all controllers.

put your access control in your front controller… but mostly you will find it with adding more controllers it will not be this simple as some actions will need to be checked to specific access (like update own)

What you mean as front-controller?

Thanks,

Riccardo

The super class from your Controllers is also a controller… look in components/controller.php

And put a filter for access control in there, I did the same before but later moved it to each controller as it is more flexible to remove certain actions from “automatic” access control :)