EditController::actionCreate PHP Method

actionCreate() public method

If update is successful, the browser will be redirected to the 'view' page.
public actionCreate ( integer $id, $language )
$id integer the ID of the model to be updated
    public function actionCreate($id, $language)
    {
        $model = new Message('create');
        $model->id = $id;
        $model->language = $language;
        if (isset($_POST['Message'])) {
            $model->attributes = $_POST['Message'];
            if ($model->save()) {
                $this->redirect(array('missing'));
            }
        }
        $this->render('form', array('model' => $model));
    }