How to use yii2 poll extension


(jaaf) #1

I try to setup the lslsoft.com poll extension. I followed the guidelines in this page http://lslsoft.com/2017/01/22/simple-poll-widget-for-yii2/ . I could manage to apply the migration and ended with 3 tables created in mà database polls, polls_answer, polls_result.
As the README page doesn’t tell how to create a poll I assumed that I could see the poll example using the result produced by the following recommended command:

for inserting some sample data:
‘migrate-lslsoft-create’ => [
‘class’ => ‘yii\console\controllers\MigrateController’,
‘migrationPath’ => ‘vendor/lslsoft/yii2-poll/migrations/insert’,
‘migrationTable’ => ‘migration_lslsoft_insert’,
],

to run use the command

php yii migrate-lslsoft-insert

Unfortunately this command doesn’t insert anything into the tables.

Can somebody help me understanding why the data is not inserted and how to produce a poll of of my own?