Introjs Widget For Yii

IntroJS is small javascript library to introduce your web site feature to visitors.

demo is available in usablica.github.io/intro.js/.

now I developed Yii extension for it and the source is available in github.com/moein7tl/Yii-IntroJS.

usage is so simply by following code:




$this->widget('application.extensions.introjs.IntroJs',array(

    'data'=>array(

        array('id'=>'introID1','step'=>1,'intro'=>'Hello World!','position'=>'right'),

        array('id'=>'IntroID2','step'=>2,'intro'=>'Yii widget powered By Mohammad Moein Hosseini Manesh'),

        /* all step and data should be defined here*/

        array('id'=>'introIDStart','start'=>true,'event'=>'onclick'), // define one element as starter,default event is onclick

        array('id'=>'introIDExit','exit'=>true,'event'=>'onclick'), // you can define elements to exit before ending IntroJs,default event is onclick

    )

));



and more data is at github.com/moein7tl/Yii-IntroJS

what is your onion about it?

Hi there.

I tried to use your widget. I followed the instructions. When I navigate to the page with the prescribed script, the following error appears:


PHP notice


Undefined index: position

So did I miss something in the setup?

Thank you for any guidance.

Mike K.