public function actionCreate() { $model = new Part(); // Uncomment the following line if AJAX validation is needed // $this->performAjaxValidation($model); if (isset($_POST['Part'])) { $model->attributes = $_POST['Part']; if ($model->saveNode()) { $this->redirect(array('view', 'id' => $model->id)); } } $this->render('create', array('model' => $model)); }