仿 segmentfault 的Yii2实现
The preferred way to install this extension is through composer.
composer require --prefer-dist yuncms/yii2-question
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
this is released under the MIT License. See the bundled LICENSE.md for details.