Thursday, November 29, 2012

Problem with Elements

Hi, this is what i´m trying to do, i have this index.ctp view where i show some information about the logged user (such as name, mail, etc).. but in the Users table there´s a field called info that the user can update, the thing is that, in my index fuction in my Users´s controller i have this
 
public function index() {
        $this->Person->id = $this->Session->read('Auth.User.id');
        $this->set('people', $this->Person->read());
    }

it shows the info perfect, so, in my index view i have a little section with a textfield where the user can update this "info" field, so the thing is that i'm trying to create this form in an element and include it into my index view, i have my controller's action called update_info with the logic to do so.. but it doesn´t works, i don´t know why, anybody canhelp me with this or maybe give me ideas about other ways to do it???

thanx a lot!

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
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.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: