public function saveFoto() { try { $pessoa = new Pessoa($this->data->id); $pessoa->setFoto(Mutil::parseFiles('foto', 0)); $pessoa->save(); $go = '>exemplos/pessoa/formObject/' . $this->data->id; $this->renderPrompt('information', 'OK', $go); } catch (Exception $e) { $this->renderPrompt('error', $e->getMessage()); } }