Created
June 28, 2012 12:13
-
-
Save tareko/3010988 to your computer and use it in GitHub Desktop.
this should fail
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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; | |
| } |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
/app/Controller/TradesController.php (line 74)
array()
VALID LOGIC
/app/Controller/TradesController.php (line 77)
true
/app/Controller/TradesController.php (line 78)
array()