Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function actionUpdate($id)
- {
- $model=$this->loadModel($id);
- // AQUI...pasar a fechaString lo que tiene el bigint fecha usando:
- $model->fechaString = Yii::app()->format->formatDate($model->fecha);
- // Uncomment the following line if AJAX validation is needed
- // $this->performAjaxValidation($model);
- if(isset($_POST['Prueba']))
- {
- $model->attributes=$_POST['Prueba'];
- if($model->save())
- $this->redirect(array('view','id'=>$model->idprueba));
- }
- $this->render('update',array(
- 'model'=>$model,
- ));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement