Aha! Thanks for the pointer. Like someone said elsewhere in the group, "so fast, and so right".
I've gone through the blog tutorial before, but during my own implementation, I made a goof. I install the current user's ID in the session, and when I want to get the current user for populating the form in question, I used $this->findAllById($id); But this returned an array of size 1 containing the user info, and the cake magic couldn't read it out, whereas the code $this->id = $id; $this->read(); returns the user hash directly, and my form started populating with the data like I wanted. The problem with the latter code is that it looks like it sets a "current user" inside my model. What is the scope and lifetime of this particular User instance, or of $this->User inside the controller? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
