PHP Classes

File: views/frontend/page/_header.php

Recommend this page to a friend!
  Classes of Gabriel Alejandro López López   Yii2 Website Module   views/frontend/page/_header.php   Download  
File: views/frontend/page/_header.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: 384 bytes
 

Contents

Class file image Download
<?php

use yii\helpers\Html;

$this->title = Html::encode($model->title);
$this->description = Html::encode($model->abstract);
$this->image = $model->image;

?>

<header class="jumbotron jumbotron-fluid">
    <div class="container">
        <h1 class="display-4"><?= $this->title ?></h1>
        <p class="lead mt-4 pt-4 border-top"><?= $this->description ?></p>
    </div>
</header>