Skip to content

Instantly share code, notes, and snippets.

@tareko
Created June 28, 2012 12:13
Show Gist options
  • Select an option

  • Save tareko/3010988 to your computer and use it in GitHub Desktop.

Select an option

Save tareko/3010988 to your computer and use it in GitHub Desktop.
this should fail
public function add() {
debug($this->request->data);
if ($this->Trade->save($this->request->data)) {
echo "VALID LOGIC";
debug($this->Trade->validates());
debug($this->request->data);
} else {
// didn't validate logic
debug($this->Trade->validationErrors);
}
die;
}
@tareko

tareko commented Jun 28, 2012

Copy link
Copy Markdown
Author

/app/Controller/TradesController.php (line 74)

array()

VALID LOGIC
/app/Controller/TradesController.php (line 77)

true

/app/Controller/TradesController.php (line 78)

array()

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment