Hi,
Having added CAKE_ADMIN functions to several controllers, I would like
to add an action somewhere so that I can go to the URL /admin/ and get
an interface screen containing all the various admin actions I can
call.
Is there a prefered place to put this admin action (do I have to create
an admin controller and add a new route)?
i.e.. $Route->connect('/admin', array('controller' => 'administrators',
'action' => 'index'))
class AdministratorsController extends AppController {
var $name = 'Administrators';
function index()
}
}
Is there a way of automatically finding all the available admin actions
and their respective controllers short of reading all the php files in
and searching for the CAKE_ADMIN string in function definitions or do I
have to manually pick out the available methods and define the action
effectively statically?
Paul
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---