/** * Creates a new BienesNCodigoBien model. * If creation is successful, the browser will be redirected to the 'view' page. * @return mixed */ public function actionCreate() { $model = new BienesNCodigoBien(); // $model->nombre= '1'; // $model->descripcion= 'esta es la descripcion'; // $model->valor_unidad= 1; // $model->justiprecio= 1; // $model->ano_adquisicion= 'XXXX-XX-XX'; // $model->ubicacion= 1; // $model->tipo_adquisicion= 1; // $model->n_documento= 1; // $model->id_sede= 1; // $model->identificacion= 1; // $model->id_codigo = 2; // $model->id_localidad = 2; if ($model->load(Yii::$app->request->post()) && $model->save()) { return $this->redirect(['view', 'id_codigo' => $model->id_codigo, 'id_direccion' => $model->id_direccion, 'identificacion' => $model->identificacion]); } else { return $this->render('create', ['model' => $model]); } }