One example, that we often see, is something along the following lines in the controller: if($this->User->save($this->data)) { $this->Session->setFlash(… some stuff for the view …
Day: September 22, 2008
One example, that we often see, is something along the following lines in the controller: if($this->User->save($this->data)) { $this->Session->setFlash(… some stuff for the view …
Here’s another trick with Set::merge()… Let’s say we’ve defined some basic validation rules in our Profile model, something like: var $validate = array (