Commit 3476317f authored by Shakarim Sapa's avatar Shakarim Sapa

- Test

parent 8396853e
......@@ -75,6 +75,7 @@ class BlogSchedule extends ActiveRecordModel
$date = new \DateTime();
// Получили все посты
$all_posts = Post::find()->orderBy('date DESC')->all();
var_dump($all_posts); die;
// Создали результирующий массив
$result_posts = [];
// В цикле перебираем все посты в базе
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment