For retreiving the actions you could do :
1) Import the controller
2)
$parentClassMethods =
get_class_methods(get_parent_class(Inflector::camelize($controllerName).'Controller'));
$subClassMethods =
get_class_methods(Inflector::camelize($controllerName).'Controller');
$classMethods = array_diff($subClassMethods,
$parentClassMethods);
3) if you want to filter out the non "callable" methods:
foreach($classMethods as $method)
{
if($method{0} <> "_")
{
$classMethodsCleaned[] = $method;
}
}
hth
On Jun 23, 3:43 pm, Pravalitera <[EMAIL PROTECTED]> wrote:
> Hello there,
>
> i'm looking for a way to list all my controllers/actions.
>
> To list controllers, i found this :
>
> $Configure = &Configure::getInstance();
> $controllers_list = $Configure->listObjects('controller');
>
> Pretty cool, but i don't manage to list all my views/functions of
> each...
>
> If anyone could help me, that could make my day.
>
> Thx.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---