示例#1
0
 public function actionDetail()
 {
     $id = intval(\Yii::$app->request->get('id'));
     $detail = Blog::detail($id);
     $this->checkPermission($detail);
     $detail['content'] = htmlspecialchars_decode($detail['content']);
     Blog::readInc($id);
     return $this->render('/site/detail', $detail);
 }