/**
  * Creates a new model.
  * If creation is successful, the browser will be redirected to the 'update' page.
  */
 public function actionCreate()
 {
     $model = new CreatingFormElements();
     // Uncomment the following line if AJAX validation is needed
     // $this->performAjaxValidation($model);
     // set attributes from get
     if (isset($_GET['CreatingFormElements'])) {
         $model->attributes = $_GET['CreatingFormElements'];
     }
     if (isset($_POST['CreatingFormElements'])) {
         $model->attributes = $_POST['CreatingFormElements'];
         if ($model->save()) {
             $url = isset($_POST['go_to_list']) ? $this->listUrl('index') : $this->itemUrl('update', $model->id);
             $this->redirect($url);
         }
     }
     $this->render('create', array('model' => $model));
 }