The Yii Questions and Answers module inspired by Stack Overflow


Keywords
yii, question, question answer, artkost, yii-question, segmentfault, stack-overflow, yii2-question
License
BSD-3-Clause

Documentation

yii2-question

仿 segmentfault 的Yii2实现

Latest Stable Version Total Downloads Reference Status Build Status Dependency Status License

安装

The preferred way to install this extension is through composer.

Either run

composer require --prefer-dist yuncms/yii2-question

or add

"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',
            ],
        ],
    ],
$ 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 for details.