Yii 2.0: yii2-forcecopy

Add button to the toolbar to enable/disable the asset manager forceCopy setting.
1 follower

Yii2-forcecopy

Adds a button to quickly turn forceCopy on/off in the debug toolbar.

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist 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 :

... 
    '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.

Yii2-forcecopy

Be the first person to leave a comment

Please to leave your comment.

Create extension
Downloads
No downloadable files yet
  • Yii Version: 2.0
  • License: New BSD License
  • Developed by: Derek++
  • Category: Others
  • Votes: No votes yet
  • Downloaded: 0 times
  • Created on: Feb 6, 2017
  • Last updated: never