Faryshta / yii2-disable-submit-buttons

Asset to disable buttons when submiting a form in yii2
Other
15 stars 10 forks source link

ReflectionException occured for Faryshta widget #9

Open IntegrityFoundation opened 5 years ago

IntegrityFoundation commented 5 years ago

I am using Yii2 basic application template and I have hosted the software files on my VPS server. I have installed composer and also updated. When I start to run the application it shows the error as below:

ReflectionException Class app\assets\DisableSubmitButtonsAsset does not exist

1Luc1 commented 5 years ago

the readme has a misspelling. should be:

use faryshta\disableSubmitButtons\Asset as DisableSubmitButtonAsset;

class AppAsset extends yii\web\AssetBundle
{
    public $depends = [
        DisableSubmitButtonAsset::class, // <-- this line
        // other dependencies
    ];
}