librecmscom / yii2-question

适用于Yii2的问答模块,定制模块,非通用模块,只可用来扒代码用。以前扒https://github.com/artkost/yii2-qa 的,改动非常大

Home Page:http://yuncms-staging.daoapp.io/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

适用于Yii2的问答模块,定制模块,非通用模块,只可用来扒代码用。以前扒https://github.com/artkost/yii2-qa 的,改动非常大

http://yuncms-staging.daoapp.io/

License:MIT License


Languages

Language:PHP 96.5%Language:CSS 2.8%Language:JavaScript 0.8%