public function actionCreate()
{
$model = new Language();
if (isset($_POST['Language'])) {
$model->attributes = $_POST['Language'];
if ($model->validate() && $model->save()) {
$this->redirect(array('index'));
}
}
$statusOptions = array(0 => Yii::t('common', 'Disabled'), 1 => Yii::t('common', 'Enabled'));
$this->render('create', array('model' => $model, 'statusOptions' => $statusOptions));
}