Skip to content

Infinitiweb/yii2-panel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

infinitiweb-panel

Yii panel-widget

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist infinitiweb/yii2-panel "dev-master"

or add

"infinitiweb/yii2-panel": "dev-master"

to the require section of your composer.json file.

Usage

<?php
use infinitiweb\widgets\yii2\panel\Panel;

Panel::begin([
    'title' =>  'Update',
    'heading' => true,                                         
])?>

<!-- content -->

<?php Panel::end();?>

Or

<?php

use infinitiweb\widgets\yii2\panel\Panel;

echo Panel::widget([
    'title' => 'Title',
    'content' => ''
]);
?>