##Yee CMS - Post Module
####Backend module for managing posts
This module is part of Yee CMS (based on Yii2 Framework).
Post module lets you easily create posts on your site.
-
Install Yee Media Module if it is not installed yet.
-
Either run
composer require --prefer-dist yeesoft/yii2-yee-post "*"
or add
"yeesoft/yii2-yee-post": "*"
to the require section of your composer.json
file.
- Run migrations
yii migrate --migrationPath=@vendor/yeesoft/yii2-yee-post/migrations/
- In your backend config file
'modules'=>[
'post' => [
'class' => 'yeesoft\post\PostModule',
],
],
You can use dashboard widget to display short information about recent activity in the module.
Add this code in your control panel dashboard to display widget:
echo \yeesoft\post\widgets\dashboard\Posts::widget();