abdualiym / yii2-vote
Votes modul for yii2
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 112
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
Requires (Dev)
- phpunit/phpunit: 4.*
README
Votes modul for yii2
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist abdualiym/yii2-vote "*"
or add
"abdualiym/yii2-vote": "*"
to the require section of your composer.json
file.
Config
'modules' => [
'vote' => [
'class' => 'abdualiym\vote\Vote',
],
],
Url manager
i18n url
'vote/<_c:[\w\-]+>/<_a:[\w-]+>' => 'vote/<_c>/<_a>',
Url manager
'voteresult' => 'site/vote-result',
common/config.php
'languages' => ['ru', 'en'],
Usage
Once the extension is installed, simply use it in your code by :
<?php echo \frontend\widgets\vote\Vote::widget(); ?>