how to fix it
<?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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home