public function actionSAgenda() { $model = new Agenda(); $model->owner = $_POST['owner']; $model->lastUpdate = $_POST['date']; $status = $model->showAgenda(); echo json_encode($status); }