wdmg / yii2-admin
Administrative dashboard for Butterfly.CMS
Installs: 589
Dependents: 1
Suggesters: 0
Security: 0
Stars: 3
Watchers: 4
Forks: 1
Open Issues: 12
Language:CSS
Type:yii2-extension
Requires
- bower-asset/font-awesome: ^6.4.0
- wdmg/yii2-base: ^1.3.2
- wdmg/yii2-chartjs: ^1.0.7
- wdmg/yii2-helpers: ^1.4.7
- wdmg/yii2-validators: ^1.0.7
- wdmg/yii2-widgets: ^1.0.4
- yiisoft/yii2: ^2.0.40
- dev-master
- 1.4.6
- 1.4.5
- 1.4.4
- 1.4.3
- 1.4.2
- 1.4.1
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.27
- 1.1.26
- 1.1.25
- 1.1.24
- 1.1.23
- 1.1.22
- 1.1.21
- 1.1.20
- 1.1.19
- 1.1.18
- 1.1.17
- 1.1.16
- 1.1.15
- 1.1.14
- 1.1.13
- 1.1.12
- 1.1.11
- 1.1.10
- 1.1.9
- 1.1.8
- 1.1.7
- 1.1.6
- 1.1.5
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.10
- 1.0.9
- 1.0.8
- 1.0.7
- 1.0.6
- 1.0.5
- 1.0.4
- 1.0.3
- 0.0.1
- dev-dependabot/npm_and_yarn/json5-2.2.3
- 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/terser-5.14.2
- dev-dependabot/npm_and_yarn/copy-props-2.0.5
- dev-dependabot/npm_and_yarn/path-parse-1.0.7
- dev-dependabot/npm_and_yarn/postcss-7.0.36
- dev-dependabot/npm_and_yarn/browserslist-4.16.6
- dev-dependabot/npm_and_yarn/lodash-4.17.21
- dev-dependabot/npm_and_yarn/y18n-3.2.2
- dev-dependabot/npm_and_yarn/hosted-git-info-2.8.9
- dev-dependabot/npm_and_yarn/ini-1.3.8
This package is auto-updated.
Last update: 2024-11-07 21:20:07 UTC
README
Yii2 Admin Module
Administrative panel for Butterfly.CMS.
This module is an integral part of the Butterfly.СMS content management system, but can also be used as an standalone extension.
Copyrights (c) 2019-2023 W.D.M.Group, Ukraine
Requirements
- PHP 5.6 or higher
- Yii2 v.2.0.40 and newest
- Yii2 Base module (required)
- Yii2 Users module (required)
Installation
To install the module, run the following command in the console:
$ composer require "wdmg/yii2-admin"
After configure db connection, run the following command in the console:
$ php yii admin/init
And select the operation you want to perform:
- Apply all modules migrations
- Revert all modules migrations
Migrations
In any case, you can execute the migration and create the initial data, run the following command in the console:
$ php yii migrate --migrationPath=@vendor/wdmg/yii2-admin/migrations
Configure
To add a module to the project, add the following data in your configuration file:
'modules' => [
...
'admin' => [
'class' => 'wdmg\admin\Module',
'routePrefix' => 'admin',
'checkForUpdates' => true, // boolean, the flag if updates check turn on
'cacheExpire' => 3600, // integer, the time to expire cache
'multiSignIn' => false, // not allow by default
'sessionTimeout' => 900, // 15 min.
'customLocales' => [ // expanding the list of language locales for searching translations
'uk-UA' => 'Українська',
],
'customSupportModules' => [ // expanding the list of modules available for installation and download
'wdmg/yii2-example',
],
'customSidebarMenu' => [ // extending the sidebar menu list
[
'label' => 'Example',
'icon' => 'fa fa-fw fa-bars',
'url' => ['/admin/example/default'],
'order' => 10,
]
],
'customCreateMenu' => [ // expanding the creation menu list
'wdmg/yii2-example' => [
'label' => 'Add new example',
'url' => ['/admin/example/default/create']
]
],
'useSphinxSearch' => true, // boolean, the flag for configuration Sphinx Search
'sphinxSearchConf' => [ // configuration of Sphinx Search daemon
'dsn' => "mysql",
'host' => "127.0.0.1",
'port' => "9306",
'username' => "",
'password' => "",
]
],
...
],
Routing
Use the Module::dashboardNavItems()
method of the module to generate a navigation items list for NavBar, like this:
<?php
echo Nav::widget([
'options' => ['class' => 'navbar-nav navbar-right'],
'label' => 'Modules',
'items' => [
Yii::$app->getModule('admin')->dashboardNavItems(),
...
]
]);
?>
Status and version [ready to use]
- v.1.4.6 - Fix sidebar, terminal link
- v.1.4.5 - Count fixed in sidebar menu
- v.1.4.4 - Add task and tickets counters