Re: Accessing variable in child class from app_controller's beforeFilter

2006-10-17 Thread brandags
Great! Thanks for your help. I'll continue to consider ACL. But since I want (non-techy) end-users to be able to manage permissions for those in their hierarchy, I don't want them to be confused with having to grant access to particlar controllers or function names (actions), etc. So in this sys

Re: Accessing variable in child class from app_controller's beforeFilter

2006-10-17 Thread AD7six
The only time an app controller instance is ever created is when you have an error ;). But is that really relavent, from yoru first message: you have code in your app controller referring to accessExceptions The error message doesn't refer to your users controller your pages controller (the on in

Re: Accessing variable in child class from app_controller's beforeFilter

2006-10-17 Thread brandags
Absolutely. But when does Cake ever create an Animal alone? Doesn't it always create a Dog, which is an animal? Or in Cake terms: When do we ever have just an App? Won't it always be a user? Does Cake ever create an AppController by itself? Isn't it instead creating a UserController which extends

Re: Accessing variable in child class from app_controller's beforeFilter

2006-10-17 Thread Trevor Burton
if the UserController extends AppController then (essentially) when you create an instance of the UserController class it contains all the members of the AppController Class as well as what's defined in UserController. They're created effectively as a single object. So, by putting something in User

Re: Accessing variable in child class from app_controller's beforeFilter

2006-10-17 Thread brandags
Alright. That makes sense. But since the Users controller extends the App controller, if I go to a page like: /users/add Shouldn't that be creating a User object rather than an App object? So that when the beforeFilter runs, it's running through the User object? For example, if I put the beforeFil

Re: Accessing variable in child class from app_controller's beforeFilter

2006-10-17 Thread D.Pape
hi. you can´t access the variables of the user controller in your app controller!! app controller is the base class of user controller, so you can access methods and variables of the app controller in your user controller, but the app controller don´t know the user controller!! --~--~-

Accessing variable in child class from app_controller's beforeFilter

2006-10-17 Thread brandags
I'm setting a few variables in my UserController that I want to access in my AppController (in the beforeFilter). But I'm getting this error: Notice: Undefined property: PagesController::$accessExceptions in C:\websites\klickfile.com\app\app_controller.php on line 67 I get the same error with the