Following the example in the manual, I cerated the tables succesfully.

I am now trying to populate the tables with this code: (it's a
paraphrase of the manual example)

        function index() {
        $aro = new Aro();

        // First, set up a few AROs.
        // These objects will have no parent initially.

        $aro->create( 1, null, '[EMAIL PROTECTED]' );
        $aro->create( 2, null, '[EMAIL PROTECTED]');
        $aro->create( 3, null, '[EMAIL PROTECTED]');

        // Now, we can make groups to organize these users:
        // Notice that the IDs for these objects are 0, because
        // they will never tie to users in our system


        $aro->create(0, null, 'Admin');
        $aro->create(0, null, 'Users');

        //Now, hook AROs to their respective groups:

        $aro->setParent('Admin', '[EMAIL PROTECTED]');
        $aro->setParent('Users', '[EMAIL PROTECTED]');
        $aro->setParent('Users', '[EMAIL PROTECTED]');

        $aco = new Aco();

        //Create some access control objects:
        $aco->create(1, null, 'Electric Guitar');

        $aco->create(2, null, 'United States Army');
        $aco->create(3, null, 'Fans');

                $this->User->recursive = 0;
                $this->set('usuaris', $this->paginate());
        }

For ease of access and because I ultimately want to control ACL from
there, I put this in the users controller in the index action.

It runs every line without complaint, but puts nothing in the db. What
am I doing wrong /  not doing at all?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to