Your ->save() parameters are wrong. You need to pass your data in as an array.
You should just be able to say: $this->Myprofile->save($this->data); and $this->Member->save($this->data); Possibly you could even do ->saveall() since your data array appears to be constructed properly. http://book.cakephp.org/view/1031/Saving-Your-Data#!/view/1031/Saving-Your-Data Don On May 5, 2:05 am, taq <taqman...@gmail.com> wrote: > <?php > //app::import('Model',array('Myprofile')); > Class MembersController extends AppController{ > var $name = 'Members'; // 5555 > var $helpers = array('Form'); > var $components = array('Session'); > var $uses = array('Member','Myprofile'); > //var $scaffold; > > function register() > { > /// $Myprofile = new Myprofile(); > if(!empty ($this->data)){ > $this->Member->create(); > // $this->loadModel('Myprofile'); > $this->Myprofile->create(); > > if($this->Member->save(($this->data['Member']['username']),($this->data['Member']['password'])) > > && $this->Myprofile->save($this->data['Myprofile'] > ['name'])) > ($this->data['Myprofile'] > ['address']), > ($this->data['Myprofile'] > ['phonenumber']))); > { > > $this->Session->setFlash('success'); > $this->redirect('index'); > > } > else > > { > > $this->Session->setFlash('failed'); > } > > I try to implement function that I bring someone But I can not call > myprofile model It took me three days to fix this problem. Then I > started discouraging.I just want to get the views of the seven > values then divided. Members tables three , Myprofile tables four > values -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php