Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function add() {
- if (!empty($this->data)) {
- if($this->FileUpload->success) {
- $this->data['Brawler']['file'] = $this->FileUpload->finalFile;
- if($this->Brawler->save($this->data)) {
- print_r($this->data);
- } else {
- echo 'At least FileUpload says things worked out.';
- debug($this->data);
- die();
- }
- } else {
- echo 'Not even FileUpload reports success.';
- debug($this->data);
- die();
- }
- }
- }
Add Comment
Please, Sign In to add comment