yii2-pace
所属分类:后台框架
开发工具:PHP
文件大小:0KB
下载次数:0
上传日期:2021-06-15 14:03:00
上 传 者:
sh-1993
说明: Yii PHP框架的PACE(自动确定娱乐进度),
(PACE (Progress Automatically Certain to Entertain) for Yii PHP Framework,)
文件列表:
CHANGELOG.md (279, 2021-06-10)
CONTRIBUTING.md (732, 2021-06-10)
LICENSE.md (1083, 2021-06-10)
composer.json (888, 2021-06-10)
src/ (0, 2021-06-10)
src/Pace.php (2135, 2021-06-10)
src/PaceAsset.php (459, 2021-06-10)
PACE (Progress Automatically Certain to Entertain) for Yii PHP Framework
=========================================================================
PACE (Progress Automatically Certain to Entertain) - Automatic page load progress bar for Yii PHP Framework
Installation
------------
The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require thtmorais/yii2-pace "*"
```
or add
```
"thtmorais/yii2-pace": "*"
```
to the require section of your `composer.json` file.
Usage
-----
Once the extension is installed, simply use it in your code by :
```php
```
or
```php
= \thtmorais\pace\Pace::widget() ?>
```
We recommend using in the `layouts/main.php` file. Or if you prefer in each view file with their respective settings.
Configuration
-------------
By default the PACE comes configured with blue color and animation minimal.
You can add general rule for all views in the `config/params.php` file as follows:
```php
[
'color' => 'blue',
'theme' => 'minimal',
'options' => []
]
];
?>
```
or individually in each view:
```php
'red',
'theme'=>'corner-indicator',
'options'=>[]
]);
?>
```
You can preview **themes** and **colors** [here](https://codebyzach.github.io/pace/).
近期下载者:
相关文件:
收藏者: