Error on edit preview
triboe opened this issue · 4 comments
triboe commented
Getting unknown property: bizley\podium\models\Post::post
<?php if (!empty($preview)): ?>
<div class="row">
<div class="col-sm-10 col-sm-offset-1">
<?= Alert::widget([
'body' => '<strong><small>'
. Yii::t('podium/view', 'Post Preview')
. '</small></strong>:<hr>'
. $model->post,
'options' => ['class' => 'alert-info']
]); ?>
</div>
</div>
<?php endif; ?>
bizley commented
Which version of Podium is this and where does this error occur? Is it post edit?
triboe commented
Podium 0.6 on Yii 2.0.10
Edit post, then Preview (New post/Preview works, both editors)
This line marked in error log (above)
. $model->post,
(BTW Reply with quote: nothing happens)
tomaszkane commented
Confirm.
There should be $model->content
instead of $model->post