https://github.com/derekisbusy/yii2-forcecopy
Debug toolbar plugin to add button to quickly enable/disable forcecopy.
https://github.com/derekisbusy/yii2-forcecopy
yii2 yii2-debug yii2-extension
Last synced: 2 months ago
JSON representation
Debug toolbar plugin to add button to quickly enable/disable forcecopy.
- Host: GitHub
- URL: https://github.com/derekisbusy/yii2-forcecopy
- Owner: derekisbusy
- License: bsd-3-clause
- Created: 2017-02-06T02:17:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-06-24T18:17:57.000Z (almost 6 years ago)
- Last Synced: 2025-02-22T17:38:24.195Z (3 months ago)
- Topics: yii2, yii2-debug, yii2-extension
- Language: PHP
- Size: 10.7 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Yii2-forcecopy
[]()
[](LICENSE.md)
[](https://packagist.org/packages/derekisbusy/yii2-forcecopy)Adds a button to quickly turn [forceCopy](http://www.yiiframework.com/doc-2.0/yii-web-assetmanager.html#$forceCopy-detail) on/off in the debug toolbar.
Installation
------------The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
php composer.phar require --prefer-dist --dev derekisbusy/yii2-forcecopy "*"
```or add
```
"derekisbusy/yii2-forcecopy": "*"
```to the require section of your `composer.json` file.
Setup Config
------------Add the forcecopy panel to the debug panels list in your configuration file :
```php
'debug' => [
'class' => 'yii\debug\Module',
'panels' => [
'forcecopy' => ['class' => 'derekisbusy\forcecopy\ForcecopyPanel']
]
],
```Usage
-----The extension will add a section to the debug toolbar indicating whether or not forceCopy is on or off.
Click the forcecopy status label to change it's state on or off.