} /** * 移动端配置 * @return [type] [description] */ public function actionDetails(){ $id = Yii::$app->request->get('id');; //预算维度标签 $model = Article::findOne($id ); $model->addViewNumber(); return $this->render('details',[ 'model'=>$model ]); } }
$_GET = [ 'id' => '3199', ];