/** * Creates a new model. * If creation is successful, the browser will be redirected to the 'view' page. */ public function actionCreate() { $model = new Rollinfo(); //$model->with('fchaine,fweft'); //var_dump($model); // Uncomment the following line if AJAX validation is needed // $this->performAjaxValidation($model); if (isset($_POST['Rollinfo'])) { $model->attributes = $_POST['Rollinfo']; $model->fsilktype1 = $_POST['Rollinfo']['fsilktype1']; $model->frolltime1 = $_POST['Rollinfo']['frolltime1']; $model->fpltime1 = $_POST['Rollinfo']['fpltime1']; $model->frealtime1 = $_POST['Rollinfo']['frealtime1']; $model->flasttime1 = $_POST['Rollinfo']['flasttime1']; //$model-> if ($model->save()) { $this->redirect(array('view', 'id' => $model->fid)); } } $this->render('create', array('model' => $model)); }