Saturday, December 29, 2012

User Model changes to AppModel

Hello,

I really need help in trouble shooting or understanding what I am doing wrong.

What I am trying to do
call /system/user

Condition (This is a generic over)
beforeFilter() <- User model = Object(User) { ... }
index() <- User model = Object(AppModel) { ... }

What I have done:
in AuthComponent->initialize()
debug($controller->User)

Result
beforeFilter() <- User model = Object(User) { ... }
initialize() <- User model = Object(User) { ... }
index() <- User model = Object(User) { ... }

I have tried many things, but somehow, when I add the AuthComponent, I lose my User object, but anytime I add debug($controller->User) it does not change. Hence, I am unable to find the exact point where my model is changing and need help in better methods of troubleshooting such a problem.

Thanks,
Jay

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: