コード例 #1
0
 public function deleteFullGrid()
 {
     try {
         $model = new models\pessoa($this->data->id);
         $model->delete();
         $go = '>exemplos/controls/formFullGrid';
         $this->renderPrompt('information', "Registro {$this->data->id} removido.", $go);
     } catch (Exception $e) {
         $this->renderPrompt('error', $e->getMessage());
     }
 }
コード例 #2
0
 public function saveFoto()
 {
     try {
         $pessoa = new models\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());
     }
 }