On Thu, Jun 14, 2012 at 1:41 PM, JonStark <[email protected]> wrote:
> From what I understand, this method extracts the ID of the followed users
> from the AUTH data right ?

I thought the array you posted was the output of $this->Auth->user()
but maybe i misread that. When a given User logs in, their data is
kept in the session and is available through that method. If it
doesn't already contain the associated Users, you could add it to the
session in the login() method.

> Can set::extract work with the array produced when finding/viewing an user ?

Yes, pass the array as the 2nd param. Use debug($the_array) to figure
out the xpath to use for 1st param.

(It's Set, not set, btw)

-- 
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

Reply via email to