rtconnor: I still don't see a need for a model instance here.

Your first query, User->find(), will return the User data (as an
array), with appropriate associations loaded.
Your second query, User->read, will return User data (as an array),
with appropriate associations loaded.

Instead, try
$user = $this->User->find( ..your session hash conditions... )
$this->set( 'user', $user )


For future reference, model instances are used in cake as the
interface to the data layer - and in any one request there will only
be a single model instance created.  All data is returned as arrays.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
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