$aro = new Aro(); // users and groups $aco = new Aco(); // controllers and actions // add some users and groups to the system // it is assumed you have your own table of user, with their own information $aro->create( 1, null, 'John Smith' ); // 1=user_id, null=parent $aro->create( 2, null, 'Millie Thompson'); $aro->create(0, null, 'Admins'); // group $aro->create(0, null, 'Managers'); //group //set John to be an admin $aro->setParent('Admins', 1); // set Millie to be an manager $aro->setParent('Managers', 2); $aco->create(0, null, 'Home/home');