Thanks for pointing out the video and tutes, exactly what I need.
I do have a question, though. I'm going through the video tutorial
for Auth in cakePHP 2.0 and have the Auth component set up as
instructed in the video with the "authorized" property of the Auth
Component set to "controller" so it will use the isAuthorized method
in the controllers. However, in my isAuthorized controller my $user
data is not available to me. I want to make sure that the current
user is editing/deleting their own account rather than another's
account, just like in the video. However, only my passcode is
available in the $user variable passed into the method.
I have a UsersController with an isAuthorized method like this:
public function isAuthorized($user){
debug($user);
...
}
Which outputs:
Array
(
[User] => Array
(
[passcode] => 12345678
)
)
How can I access my user's data other than the passcode? I want to
specifically check the user's ID. I have a login form that only asks
for a user's passcode rather than a username/password combo, which is
the only real difference between my app and the one in the video
tutorial as far as I know. Any help with how I can get to the rest of
my user data beyond the passcode would be great.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php