kr0lik/yii2-yandex-sovetnik-hide-asset

Yii2 asset for yandex sovetnik hide javascript file

1.0.0 2018-04-25 13:53 UTC

This package is auto-updated.

Last update: 2020-03-16 11:48:41 UTC


README

Yii2 asset for yandex-sovetnik-hide

Installation

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist kr0lik/yii2-yandex-sovetnik-hide-asset "*"

or add

"kr0lik/yii2-yandex-sovetnik-hide-asset": "*"

to the require section of your composer.json file.

Usage

In View:

<?php
use kr0lik\stopsovetnik\StopSovetnikAsset;

StopSovetnikAsset::register($this);
?>

In Asset:

<?php
namespace app\assets;

use yii\web\AssetBundle;
use kr0lik\stopsovetnik\StopSovetnikAsset;

class SiteAsset extends AssetBundle
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
        'your/style.css',
    ];
    public $js = [
        'your/scripts.js'
    ];
    public $depends = [
        StopSovetnikAsset::class
    ];
}