fix changelog issue

This commit is contained in:
Chris Smith
2025-02-19 22:49:26 +01:00
parent 05cadf7fc3
commit ad82544bc4
5 changed files with 13 additions and 15 deletions

View File

@@ -6,7 +6,7 @@ use yii\widgets\DetailView;
/** @var yii\web\View $this */
/** @var common\models\Meal $model */
$this->title = $model->id;
$this->title = $model->food_name;
$this->params['breadcrumbs'][] = ['label' => 'Meals', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
\yii\web\YiiAsset::register($this);
@@ -29,16 +29,12 @@ $this->params['breadcrumbs'][] = $this->title;
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'file_name',
'calories',
'protein',
'fat',
'carbohydrates',
'fiber',
'meal',
'created_at',
'updated_at',
'created_at:datetime',
],
]) ?>