i'm new working with yii,
maybe is just a estupid thing but a can't make it work,
i have this:
$turno = new Turnosservice();
$turno->turno_id = $this->request->get('d');
$turno->disponibilidad_id = $this->request->get('t');
$turno->hash = trim($this->request->get('session'));
$turno->operacion = 'C';
$turno->plataform = $this->getPlatform($this->request->userAgent);
$turno->appversion = $this->request->userAgent;
$turno->appname = $this->getBrowser($this->request->userAgent);
$turno->estado = 0;
$turno->host = $this->request->userIP;
//var_dump($turno);
return $this->render('anulacion', ['model' => $turno]);
everything looks good, the model have all the data needed, but when render, just shows a blank page,
but if i do this:
return $this->render('anulacion', ['model' => $model = new Turnosservice()]);
of course, this last just load a empty model without the data i need.