/** * 录入 * */ public function actionCreate() { parent::_acl('investType_create'); $model = new InvestType(); if (isset($_POST['InvestType'])) { $model->attributes = $_POST['InvestType']; if ($model->save()) { AdminLogger::_create(array('catalog' => 'create', 'intro' => '录入投资类型,ID:' . $model->id)); $this->redirect(array('index')); } } $this->render('create', array('model' => $model)); }