|
|
|
@ -20,6 +20,7 @@ class PageHelper
|
|
|
|
|
$model->title, |
|
|
|
|
$model->slug, |
|
|
|
|
$model->content, |
|
|
|
|
Page::TYPE_REVISION, |
|
|
|
|
new Meta( |
|
|
|
|
$model->meta->title, |
|
|
|
|
$model->meta->description, |
|
|
|
@ -29,7 +30,7 @@ class PageHelper
|
|
|
|
|
|
|
|
|
|
$page->revision_at = $model->updated_at; |
|
|
|
|
$page->revision_id = $model->id; |
|
|
|
|
$page->type = Page::TYPE_REVISION; |
|
|
|
|
//$page->type = Page::TYPE_REVISION; |
|
|
|
|
//$page->tree = 2; |
|
|
|
|
|
|
|
|
|
$parent = Page::find()->andWhere(['slug' => 'temp'])->andWhere(['depth' => 0])->one(); |
|
|
|
|