artkost/yii2-qa
Composer 安装命令:
composer require artkost/yii2-qa
包简介
The Yii 2 Questions and Answers module inspired by Stack Overflow
关键字:
README 文档
README
Maintainers Wanted!
Questions and Answers for Yii 2
Extension provides web QA inspired by Stack Overflow.
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist artkost/yii2-qa "*"
or add
"artkost/yii2-qa": "*"
to the require section of your composer.json file.
Usage
Once the extension is installed, simply modify your application configuration as follows:
return [ 'qa' => [ 'class' => 'artkost\qa\Module', 'userNameFormatter' => 'getUserName' ], ... ];
Install Migrations
php yii migrate/up --migrationPath=@vendor/artkost/yii2-qa/migrations
You can then access QA through the following URL:
http://localhost/path/to/index.php?r=qa
Widgets
You can use available widgets
<?= Tags::widget(['limit' => 20]) ?> <?= Popular::widget(['limit' => 20, 'views' => 20]) ?> <?= Favorite::widget(['userID' => Yii::$app->user->id, 'limit' => 20]) ?>
统计信息
- 总下载量: 695
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 90
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2014-03-23