Baz, I was thinking of your problem .. I have an idea, but maybe
completly wrong ..

In your plugin you could write a cached::file, or a config file where
you would store the code needed to make a proper "create_function" ..
Thus you could make this function using create_function in your
app_controller...

Just an idea, sorry if does not fit..

On Jul 18, 4:19 pm, kiang <[EMAIL PROTECTED]> wrote:
> Try this:http://www.cakephpforum.net/index.php?showtopic=27
>
> ---
> kiang
>
> On Jul 17, 11:58 am, Baz L <[EMAIL PROTECTED]> wrote:
>
> > 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_gr...
> > 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to