Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/librecmscom/yii2-question
适用于Yii2的问答模块,定制模块,非通用模块,只可用来扒代码用。以前扒https://github.com/artkost/yii2-qa 的,改动非常大
https://github.com/librecmscom/yii2-question
question segmentfault stack-overflow yii yii2-question
Last synced: about 1 month ago
JSON representation
适用于Yii2的问答模块,定制模块,非通用模块,只可用来扒代码用。以前扒https://github.com/artkost/yii2-qa 的,改动非常大
- Host: GitHub
- URL: https://github.com/librecmscom/yii2-question
- Owner: librecmscom
- License: mit
- Created: 2016-09-03T07:28:04.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-10-23T09:05:36.000Z (about 7 years ago)
- Last Synced: 2024-10-24T15:40:13.216Z (about 2 months ago)
- Topics: question, segmentfault, stack-overflow, yii, yii2-question
- Language: PHP
- Homepage: http://yuncms-staging.daoapp.io/
- Size: 152 KB
- Stars: 7
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yii2-question
仿 segmentfault 的Yii2实现
[![Latest Stable Version](https://poser.pugx.org/yuncms/yii2-question/v/stable.png)](https://packagist.org/packages/yuncms/yii2-question)
[![Total Downloads](https://poser.pugx.org/yuncms/yii2-question/downloads.png)](https://packagist.org/packages/yuncms/yii2-question)
[![Reference Status](https://www.versioneye.com/php/yuncms:yii2-question/reference_badge.svg)](https://www.versioneye.com/php/yuncms:yii2-question/references)
[![Build Status](https://img.shields.io/travis/yiisoft/yii2-question.svg)](http://travis-ci.org/yuncms/yii2-question)
[![Dependency Status](https://www.versioneye.com/php/yuncms:yii2-question/dev-master/badge.png)](https://www.versioneye.com/php/yuncms:yii2-question/dev-master)
[![License](https://poser.pugx.org/yuncms/yii2-question/license.svg)](https://packagist.org/packages/yuncms/yii2-question)安装
----The preferred way to install this extension is through [composer](http://getcomposer.org/download/).
Either run
```
composer require --prefer-dist yuncms/yii2-question
```or add
```json
"yuncms/yii2-question": "*"
```to the `require` section of your composer.json.
Add following lines to your main configuration file:
``php
'modules' => [
'question' => [
'class' => 'yuncms\question\frontend\Module',
],
],
```After you downloaded and configured Yii2-vote, the last thing you need to do is updating your database schema by applying the migrations:
`
``php
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
//命名空间
'migrationNamespaces' => [
'yuncms\question\migrations',
],
],
],
``````bash
$ php yii migrate/up
```使用
----http::www.youname.com/index.php?r=question
## License
this is released under the MIT License. See the bundled [LICENSE.md](LICENSE.md)
for details.