PHP code example of liyifei / yii2-adminlte
1. Go to this page and download the library: Download liyifei/yii2-adminlte library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
liyifei / yii2-adminlte example snippets
<?= \liyifei\adminlte\AutoloadExample::widget();
'components' => [
'assetManager'=>[
'bundles'=>[
'yii\web\JqueryAsset'=>[
'class'=>'liyifei\adminlte\bundles\JqueryAsset'
],
'yii\bootstrap\BootstrapAsset'=>[
'class'=>'liyifei\adminlte\bundles\BootstrapAsset'
]
]
],
],
<?=
DatePicker::widget([
'name' => 'asdfsadf',
'value' => '2015-10-22',
])
<?=
DateRangePicker::widget([
'name' => 'qwer',
'value' => ''
])
<?=
DateRangePicker::widget([
'name_start' => 'q[wer]',
'name_stop' => 'a[sdf]',
'value_start' => '2015-10-22',
'value_stop' => '2015-11-22',
'seperate' => true
])
<?=
DateTimeRangePicker::widget([
'name' => 'qwera',
'value' => ''
])
<?=
DateTimeRangePicker::widget([
'name_start' => 'q[werx]',
'name_stop' => 'a[sdfx]',
'value_start' => '2015-10-22',
'value_stop' => '2015-11-22',
'seperate' => true
])
<?=
TimePicker::widget([
'name' => 'asdfsadf',
'value' => '11:11',
])
<?=
TimePicker::widget([
'name' => 'asdfsadf',
'value' => '11:11:11',
])
<?=
ColorPicker::widget([
'name' => 'asdfsadf',
'value' => '#db3d3d',
])
<?=
Select::widget([
'name' => 'asdfasdf',
'multiple' => true,
'value' => ['a', 'b'],
'options' => [
'a' => 'aaaa',
'b' => 'bbbb',
'c' => 'cccc'
]
])
<?=
Checkbox::widget([
'name' => 'asdf',
'checked' => true,
'label' => 'asdfasdf'
])
<?=
Radio::widget([
'name' => 'asdf',
'values' => [
['label' => 'asdfasdf', 'checked' => true],
['label' => 'qwerqwer', 'enable' => false]
]
])
Modal::begin([
'size' => Modal::SIZE_LARGE,
'header' => 'Hello world',
'toggleButton' => ['label' => 'click me'],
]);
echo 'Say hello...';
Modal::end();
<?=
Tabs::widget([
'items' => [
[
'label' => 'One',
'content' => 'Anim pariatur cliche...',
'active' => true
],
[
'label' => 'Two',
'content' => 'Anim pariatur cliche...',
'options' => ['id' => 'myveryownID'],
],
[
'label' => 'Example',
'url' => 'http://www.example.com',
'linkOptions'=>['target'=>'_blank'],
],
[
'label' => 'Dropdown',
'items' => [
[
'label' => 'DropdownA',
'content' => 'DropdownA, Anim pariatur cliche...',
],
[
'label' => 'DropdownB',
'content' => 'DropdownB, Anim pariatur cliche...',
],
],
],
],
]);
php composer.phar