۱۴
شهریور ۹۴
if ($this -> Name -> save($data)) {
$this -> Flash -> success(__('The log has been saved.'));
return $this -> redirect(array('action' => 'index'));
} else {
$this -> Flash -> error(__('The log could not be saved. Please, try again.'));
}
debug($this->Name->validationErrors);
کافی است پس از save عبارت
debug($this->Name->validationErrors);
را قرار دهیم
۹۴/۰۶/۱۴