Hi,
The validation message is working in Add Form, but not in the Edit Form, can anyone help me? Part of my code in the controller: function edit($id = null) { $this->Post->id = $id; $sectors = $this->Post->Sector->find('list', array( 'fields' => array('id','combined_name'), 'conditions' => array('status' => 'A') ) ); $this->set(compact('sectors')); if (empty($this->data)) { $this->data = $this->Post->read(); } else { if ($this->Post->save($this->data)) { $this->Session->setFlash('Your record has been updated.'); $this->redirect(array('action' => 'index')); } else { $this->Session- >setFlash('Error.'); } } } Thanks! Best regards. -- 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