Controller Access Rule

Is the any possibility to auoto load access rule from data base instead of hard-coded at php code.

let say i have a table for controller and controller_access

controller

id -> site

controller_access

controller_id -> site

actions -> index

user -> admin

type -> deny/allow

Yes, you have to override the accessRules() method. Get the rules you want using either a model or a DBcommand, and then create the rules you want