示例#1
0
 public function actionPortfolio()
 {
     $filter = Yii::$app->request->get("filter", "all");
     $page = Yii::$app->request->get("page", 1);
     $data = Portfolio::getPortfolio($filter, $page);
     return $this->render('portfolio', ['elements' => $data['elements'], 'pagination' => $data['pagination'], 'filter' => $filter]);
 }