I am new in yii2. i have install SweetAlert using following command
composer require light/yii2-widget-sweet-alert=dev-master
And in my _form.php
use light\widgets\SweetAlert;
SweetAlert::widget([
'title' => 'Hii',
'text' => 'Are you sure'
]);
But it gives me following error
Class 'light\widgets\SweetAlert' not found
I follow all step given in its document.
What is wrong?