예제 #1
0
 public function actionCreate()
 {
     $model = new Operator();
     if (isset($_POST['Operator'])) {
         $model->attributes = $_POST['Operator'];
         if ($model->save()) {
             $this->redirect(array('view', 'id' => $model->id_opr));
         }
     }
     $this->render('create', array('model' => $model));
 }