Commit 7fb13bf2 authored by Shakarim Sapa's avatar Shakarim Sapa

- Debugging

parent cc8d40e5
...@@ -97,12 +97,12 @@ class BlogSchedule extends ActiveRecordModel ...@@ -97,12 +97,12 @@ class BlogSchedule extends ActiveRecordModel
// Далее мы уже имеем в распоряжении сформированный массив // Далее мы уже имеем в распоряжении сформированный массив
foreach($result_posts as $post_id) { foreach($result_posts as $post_id) {
$date->modify('+7 days'); $date->modify('+7 days');
echo $date->format('d.m.Y').'<br>'; $model = new BlogSchedule();
// $model = new BlogSchedule(); $model->email = $email;
// $model->email = $email; $model->post_id = $post_id;
// $model->post_id = $post_id; $model->date = $date->format('Y-m-d');
// $model->date = $date->format('Y-m-d'); if (!$model->save())
// $model->save(); echo current(current($model->getErrors())).'<br>';
} }
} }
} }
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