look at this code snipest :

$controllers = Configure::listObjects('controller');
                $plugins = Configure::listObjects('plugin');
                if (!empty($plugins)) {
                        foreach ($plugins as $plugin) {
                                $pPath= APP . 'plugins' . DS. $plugin . DS . 
'controllers' . DS;
                                $pluginControllers = 
Configure::listObjects('controller',
$pPath  ,false);
                                if (!empty($plugincontrollers)) {
                                        foreach ($pluginControllers as 
$controller) {
                                                $models[] = 
"$plugin.$controller";
                                        }
                                }
                        }
                }
                return $controllers;


i want to retreive every controller in my app even the plugins
controller and in 1.2.X i can do it easily with the Configure class
and it's listObjects method like in this snipest but it doesnt work
with plugins controllers and as you see i think that the path is
correct for every plugin but it returns nothing if you see where i am
wrong please help or test the code to check if the $path varible works
well in the core of cake.

nb: the result is great for app/controllers.

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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