diff --git a/frontend/assets/SliderAsset.php b/frontend/assets/SliderAsset.php new file mode 100644 index 0000000..d3a6d91 --- /dev/null +++ b/frontend/assets/SliderAsset.php @@ -0,0 +1,31 @@ +with('language')->where(['status' => true])->orderBy('sort')->all(); - $articles = Article::find() - ->with('language') - ->where([ 'status' => true ]) - ->orderBy('sort DESC') - ->limit(4) - ->all(); + $speakers = Speaker::find()->with(['language', 'image'])->where(['status' => true])->orderBy('sort')->all(); return $this->render('index', [ - 'slides' => $slides, - 'articles' => $articles + 'speakers' => $speakers ]); } diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php index 114431e..e1074cd 100755 --- a/frontend/views/site/index.php +++ b/frontend/views/site/index.php @@ -1,13 +1,14 @@
@@ -44,84 +45,34 @@
- +
-
Спікери
+
-
\ No newline at end of file + + \ No newline at end of file -- libgit2 0.21.4