Exemplo n.º 1
0
 /**
  * 录入
  *
  */
 public function actionCreate()
 {
     parent::_acl('consult_create');
     $model = new Consult();
     if (isset($_POST['Consult'])) {
         $model->attributes = $_POST['Consult'];
         if ($model->save()) {
             AdminLogger::_create(array('catalog' => 'create', 'intro' => '录入QQ号,ID:' . $model->id));
             $this->redirect(array('index'));
         }
     }
     $this->render('create', array('model' => $model));
 }