I'll cut to the chase: http://code.google.com/p/cakeusermanagement/
I couldn't get CakePHP's built in ACL to work in a simple to understand manner. Actually, I couldn't get it to work at all. So I built upon this: http://www.studiocanaria.com/articles/cakephp_auth_component_users_groups_permissions_revisited And tried to stick it in a plugin so that anyone can drop in and use (and also importantly, update to a later revision). Features: User Management, User Profile Editing, Changing Passwords (confirms duplicate passwords), User Registration, Forget/Reset Password, User Groups (HABTM), User Permissions (handled through Groups), and some other stuff. Here's where I'm stuck: I need to define some functions in the main AppController class. Since this is a "plug in" I'm trying to maintain as much of the code in the actual plugin folder that I can. So my question is, how do I define functions in /app/ app_controller.php with code from /app/plugins/user/somefile.php. Currently, I've been reduced to something like this: function beforeRender() { require(APP.'plugins'.DS.'user'.DS.'app_controller'.DS.'before_render.php'); } function isAuthorized(){ return require(APP.'plugins'.DS.'user'.DS.'app_controller'.DS.'is_authorized.php');; } function __permitted($controllerName,$actionName){ return require(APP.'plugins'.DS.'user'.DS.'app_controller'.DS.'__permitted.php');; } Any brighter ideas? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
