Commit c39b0ccd authored by Shakarim Sapa's avatar Shakarim Sapa

- Debugging

parent 28185807
......@@ -75,6 +75,7 @@ class BlogSchedule extends ActiveRecordModel
$date = new \DateTime();
// Получили все посты
$all_posts = Post::find()->orderBy('created_at 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