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:[email protected]] 
Sent: March-27-09 9:15 PM
To: [email protected]
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 [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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to