paulzi / cmyii
CMYii - is CMS admin system based on Yii Framework 2
Installs: 148
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 12
Type:yii2-extension
Requires
- paulzi/cmyii-core: ^0.1.0
- dev-master
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- dev-dependabot/npm_and_yarn/qs-6.5.3
- dev-dependabot/npm_and_yarn/decode-uri-component-0.2.2
- dev-dependabot/npm_and_yarn/loader-utils-1.4.2
- dev-dependabot/npm_and_yarn/moment-2.29.4
- dev-dependabot/npm_and_yarn/async-2.6.4
- dev-dependabot/npm_and_yarn/node-sass-7.0.0
- dev-dependabot/npm_and_yarn/yargs-parser-5.0.1
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/elliptic-6.5.4
- dev-dependabot/composer/yiisoft/yii2-2.0.38
This package is auto-updated.
Last update: 2024-10-07 21:41:07 UTC
README
CMYii - is CMS admin system based on Yii Framework 2.
CMYii provides only a framework for management with data, you need to implement the data blocks yourself.
This module provides the admin system itself.
Install
composer require paulzi/cmyii
Usage
Apply migrations
Apply migrations in migrations
folder. To do this, use one of the following methods:
- Add
paulzi\cmyii\migrations
namespace to your console app:
return [ 'controllerMap' => [ 'migrate' => [ 'class' => 'yii\console\controllers\MigrateController', 'migrationPath' => null, 'migrationNamespaces' => [ 'console\migrations', 'paulzi\cmyii\migrations', ], ], ], ]
- Run command:
./yii migrate --migrationPath= --migrationNamespaces=paulzi\cmyii\migrations
Specify in the configs of the application:
return [ 'bootstrap' => ['cmyii'], 'modules' => [ 'cmyii' => [ 'class' => 'paulzi\cmyii\Cmyii', ], 'admin' => [ 'class' => 'paulzi\cmyii\admin\CmyiiAdmin', 'adminBlocks' => [ 'common\cmyii\text\TextAdminWidget', ], ], ], ];
Add area in layout
Add Area widgets in your layout:
<?= \paulzi\cmyii\widgets\Area::widget(['id' => 'main']) ?>
Configure RBAC
Configure RBAC and add admin
role.
Implement block widget
See in example
folder for text block widget sample.
Add your first layout and site (example domains
: http?://*
).
Include widget in adminBlocks
section of config module.
Go to admin
Follow to URL http://yourdomain/admin/
and add block on page.
Documentation
To do