1.设置 yii 里可以自定义表单提交 public $enableCsrfValidation = false;
2.Yii框架去掉头部保留样式 <link rel="stylesheet" href="http://cdn.staticfile.org/twitter-bootstrap/3.2.0/css/bootstrap.min.css" type="text/css">
3. SQL 语句
1> Yii::$app->db->createCommand()->insert('recommend',['r_name' => $r_name,])->execute();
2> self::find()->where(['isshow' => 1])->orderBy('l_order desc')->asArray()->all();