예제 #1
0
 /**
  * Invoke regeneration of all graphs
  */
 public function actionGrefresh()
 {
     Graphs::model()->clearAll();
     $this->redirect('Default:');
 }
예제 #2
0
 public function SubmittedPatientAdd(AppForm $form)
 {
     Storage::getInstance()->createPatient($form->values);
     Graphs::model()->clearAll();
     $this->flashMessage('Novy pacient bol úspešne pridaný', 'info');
     $this->redirect('default');
     // redirect to listing
 }