-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
In composer.json (require section):
"sorich87/bootstrap-tour": "dev-master",
"mycademy/yii2-bootstrap-tour": "dev-master",
In view am using:
use yii\web\View;
use yii\bootstrap\Html;
use MyCademy\BootstrapTour\Tour;
$tour = new MyCademy\BootstrapTour\Tour([
'scope' => 'window', //Set scope to make the 'tour' variable global
'startMode' => Tour::START_MODE_INIT_ONLY, //Only initialize the tour
'clientOptions' => [ //Bootstrap Tour Options, see: http://bootstraptour.com/api/
'steps' => [
[
'element' => "#tour-el1",
'title' => "step 1",
'content' => "test 1",
],
[
'element' => "#tour-el2",
'title' => "step 2",
'content' => "test2",
],
],
],
]);
$tour->run();And i am got error:
PHP Fatal Error – yii\base\ErrorException
Class 'MyCademy\BootstrapTour\Tour' not found
On my Windows environment - all is OK, but in hosting environment (Linux) - error occured!
Maybe this is a bug due to case sensitive namespace?
What is wrong in my code?
Help me please.
Metadata
Metadata
Assignees
Labels
No labels