shoxabbos / yii2-news
News crud
Installs: 226
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Type:yii2-extension
Requires
This package is not auto-updated.
Last update: 2024-11-11 00:01:09 UTC
README
News crud
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist shoxabbos/yii2-news "*"
or add
"shoxabbos/yii2-news": "*"
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
php yii migrate --migrationPath=@vendor/shoxabbos/yii2-news/migrations
'modules' => [ 'admin' => [ 'class' => 'app\modules\admin\Module', 'controllerMap' => [ 'config' => 'shoxabbos\news\controllers\NewsController' ] ], ]
After that, you can open the pages as:
/admin/news/create /admin/news/update /admin/news/view /admin/news/index