Friday, March 27, 2009

RE: Get all USER info (code)

Sorry forgot the code:
 
Now the slug is in the USERS table not the PROFILES... I had the slug in the PROFILES table first and I had it working the way I wanted but moved it to USERS table and now its not working.
 
This is in the profiles_controller
 
var $uses = array('Profile', 'User');
 
function update_languages($slug = null)
    {
        if ($this->RequestHandler->isAjax()) {
            $this->set('language', $this->User->findBySlug($slug));
            if (!empty($this->data)) {
                if ($this->Profile->save($this->data)) {
                    $this->view_profiles($slug);
                }
            }
            $languages = $this->Profile->Language->find('list', array('fields' => 'name', 'order' => 'name ASC'));
            $this->set(compact('languages'));
        }
        if (empty($this->data)) {
            $this->data = $this->User->findBySlug($slug);
        }
    }


From: Dave Maharaj :: WidePixels.com [mailto:dave@widepixels.com]
Sent: March-27-09 9:15 PM
To: cake-php@googlegroups.com
Subject: Get all USER info

I know this is a noobie question. I cant remember how to display all the user info in the array. I see the Auth array but I want to see all the messages / posts / questions that the user has entered in the site.
 
Can someone please help me.I tried debug but that did nothing...I just cant remember how to do it.
 
Thanks
 
Dave
--~--~---------~--~----~------------~-------~--~----~
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
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: