OK, I got this working, turns out that the plugin controllers needed
to be added to the Aco by finding the actual controller files
like     /**
     * Get the names of the plugin controllers ...
     *
     * @return <type>
     */
    function _get_plugin_controller_names(){
        App::import('Core', 'File', 'Folder');
        $paths = Configure::getInstance();
        $folder =& new Folder();
        $folder->cd(APP.'plugins');
        $files = $folder->findRecursive('.*_controller\.php');

        foreach($files as $f => $fileName)
        {
            $file = basename($fileName);

            $files[$f] = Inflector::camelize(substr($file, 0,
strlen($file)-strlen('_controller.php')));


        }
        return $files;
    }

Then I just merged that with the output of
Configure::listObjects('controller') and voila, I have the Aco tree.

Now my only issue is why I am getting redirected to /acl/users/login
when I need to log in instead of /users/login as I would expect.
--~--~---------~--~----~------------~-------~--~----~
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