PHP Classes

File: views/backend/page/create.php

Recommend this page to a friend!
  Classes of Gabriel Alejandro López López   Yii2 Website Module   views/backend/page/create.php   Download  
File: views/backend/page/create.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Yii2 Website Module
Add a content page management system to a site
Author: By
Last change:
Date: 2 months ago
Size: 543 bytes
 

Contents

Class file image Download
<?php

use daxslab\website\components\Lookup;

$this->title = Yii::t('website','New Page');

if (
$parent) {
   
$this->params['breadcrumbs'] = Lookup::getBreadcrumbsForPage($model);
} else {
   
$this->params['breadcrumbs'][] = ['label' => Yii::t('website','Pages'), 'url' => ['page/index']];
   
$this->params['breadcrumbs'][] = Yii::t('website',$this->title);
}

?>

<header class="mb-4 pb-2 border-bottom">
    <h1><?= $this->title ?></h1>
</header>

<?= $this->render('_form', [
   
'model' => $model,
   
'metadatas' => $metadatas,
])
?>