1. write 'debug' //turn debugging off; debugging breaks ajax layout //set the layout to Ajax so the ajax doesn't break //Cake does everything automagically through $this->data //Since we aren't using cake's automagic, we have to fake things a little //When a form is submitted, we are going to take the data submitted ($this->params['form']['username'] //and assign it to $this->data['User']['username'] to make it fit with cake's automagic. //Otherwise, we can't use cake's save functions 'username' pa (Read Full Article)

    Related Articles

Login to comment.

 
Home All Articles Entities Quotes Comments Login Register Powered by HiveFire