maddoger / yii2-cms-admin
Admin panel for Yii2 CMS.
Installs: 49
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Language:CSS
Type:yii2-extension
Requires
- bower-asset/devbridge-autocomplete: ~1.2
- bower-asset/font-awesome: 4.*
- maddoger/yii2-cms-core: *
- maddoger/yii2-highcharts: *
- phpsysinfo/phpsysinfo: ~3.2
- yiisoft/yii2: *
- yiisoft/yii2-bootstrap: *
README
Yii2 Admin Panel Module by maddoger
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist maddoger/yii2-admin "*"
or add
"maddoger/yii2-admin": "*"
to the require section of your composer.json
file.
##Migration
./yii migrate --migrationPath="@maddoger/admin/migrations"
##Configuration
...
'modules' => [
...
'admin' => [
'class' => 'maddoger\admin\Module',
],
],
...
],
'defaultRoute' => 'admin/site/index',
'layout' => '@maddoger/admin/views/layouts/main.php',
...
##Components
'components' => [
//Admin
'urlManager' => [
'rules' => [
//Admin
<action:(index|captcha|search)>' => 'admin/site/<action>',
'<controller:(log|system-information|configuration)>/<action:(index|captcha|search)>' => 'admin/<controller>/<action>',
]
],
'errorHandler' => [
'errorAction' => 'admin/site/error',
],
...
]