Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

не работает js скрипт #37

Open
skugarev opened this issue May 26, 2020 · 1 comment
Open

не работает js скрипт #37

skugarev opened this issue May 26, 2020 · 1 comment

Comments

@skugarev
Copy link

image

Не работает js перелючение меню и кнопка на скрине указал
http://joxi.ru/a2XDPQliDYGz72
Все скрипты подключены
Фреймворк yii2
Ошибок в консоле нет не понятно в чем дело.
Установил стандартным образом через composer

@marcosfunarbe
Copy link

marcosfunarbe commented May 26, 2020

Create a Asset file in app\assets with name ThemeGentelellaAsset.php :

<?php

namespace app\assets;

use yiister\gentelella\assets\Asset;

class ThemeGentelellaAsset extends Asset
{
    public $basePath = '@webroot';
    public $baseUrl = '@web';
    public $css = [
       /*code here*/
    ];
    public $js = [
      /*code here*/
    ];

    public $depends = [
        'yii\bootstrap\BootstrapAsset',
        'yii\bootstrap\BootstrapPluginAsset',
        'yiister\gentelella\assets\ThemeAsset',
        'yiister\gentelella\assets\ExtensionAsset',
    ];
}`

in man.php

use app\assets\ThemeGentelellaAsset;
ThemeGentelellaAsset::register($this);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants