Download the PHP package pravda1979/yii2-core without Composer
On this page you can find all versions of the php package pravda1979/yii2-core. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download pravda1979/yii2-core
More information about pravda1979/yii2-core
Files in pravda1979/yii2-core
Download pravda1979/yii2-core
More information about pravda1979/yii2-core
Files in pravda1979/yii2-core
Please rate this library. Is it a good library?
Informations about the package yii2-core
Core Module
Include:
- Users
- RBAC
- Messages Translates in database
- Statuses of records
- AdminLTE theme
- Gii template
- Migration template
- Actions (index, create, update, view, delete, autocomplete)
- StringValidator
- EntryMenu widget
- Menu
- Logging users actions
- Backup/restore all changes
- App options, saved in database
Installation
The preferred way to install this extension is through composer.
Either run
or add
change minimum stability to:
to the require section of your composer.json
file.
Add to project config:
For Advanced Template
Add to console/config/main.php
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'templateFile' => '@pravda1979/core/components/migration/template.php',
'migrationPath' => [
'@pravda1979/core/migrations',
'@console/migrations',
'@yii/rbac/migrations',
],
],
],
Add to backend/config/main.php
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@app/views' => '@pravda1979/core/views',
'@pravda1979/core/views' => '@app/views',
],
],
],
'user' => [
// 'identityClass' => 'pravda1979\core\models\User', //this value setted by default from Module, remove it in config or change
// 'enableAutoLogin' => true, //this value setted by default from Module, remove it in config or change
'identityCookie' => ['name' => '_identity-backend', 'httpOnly' => true],
],
],
Add to common/config/main.php
'language' => 'ru-RU',
'sourceLanguage' => 'en-US',
'modules' => [
'core' => [
'class' => 'pravda1979\core\Module',
// Change table names if you need, by default = "core_(table_name)"
// 'tableNames' => [
// 'auth_item' => 'core_auth_item',
// 'auth_item_child' => 'core_auth_item_child',
// 'auth_assignment' => 'core_auth_assignment',
// 'auth_rule' => 'core_auth_rule',
// 'user' => 'core_user',
// 'status' => 'core_status',
// 'message' => 'core_message',
// 'source_message' => 'core_source_message',
// 'backup' => 'core_backup',
// 'backup_attribute' => 'core_backup_attribute',
// 'menu' => 'core_menu',
// 'options' => 'core_options',
// 'user_action_log' => 'core_user_action_log',
// 'session' => 'core_session',
// ],
],
],
For Basic Template
Add to config/web.php
'language' => 'ru-RU',
'sourceLanguage' => 'en-US',
'modules' => [
'core' => [
'class' => 'pravda1979\core\Module',
// Change table names if you need, by default = "core_(table_name)"
// 'tableNames' => [
// 'auth_item' => 'core_auth_item',
// 'auth_item_child' => 'core_auth_item_child',
// 'auth_assignment' => 'core_auth_assignment',
// 'auth_rule' => 'core_auth_rule',
// 'user' => 'core_user',
// 'status' => 'core_status',
// 'message' => 'core_message',
// 'source_message' => 'core_source_message',
// 'backup' => 'core_backup',
// 'backup_attribute' => 'core_backup_attribute',
// 'menu' => 'core_menu',
// 'options' => 'core_options',
// 'user_action_log' => 'core_user_action_log',
// 'session' => 'core_session',
// ],
],
],
Add to config/console.php
'modules' => [
'core' => [
'class' => 'pravda1979\core\Module',
],
],
'components' => [
'user' => [
'identityClass' => 'pravda1979\core\models\User',
],
],
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'templateFile' => '@pravda1979/core/components/migration/template.php',
'migrationPath' => [
'@pravda1979/core/migrations',
'@app/migrations',
'@yii/rbac/migrations',
],
],
],
For changing Gii template, add in config/web.php
$config['modules']['gii'] = [
'class' => 'yii\gii\Module',
'allowedIPs' => ['127.0.0.1', '::1'],
'generators' => [
'crud' => [
'class' => 'pravda1979\core\gii\crud\Generator',
'templates' => [
'adminlte' => '@pravda1979/core/gii/crud/adminlte',
]
],
'model' => [
'class' => 'pravda1979\core\gii\model\Generator',
],
],
];
For changing existing view, add in config/web.php
'components' => [
'view' => [
'theme' => [
'pathMap' => [
'@pravda1979/core/views' => '@app/views',
],
],
],
],
Base classes for Gii template:
Usage
Getting main menu items array:
Login url:
Logout url:
By default, added 3 users:
All versions of yii2-core with dependencies
PHP Build Version
Package Version
Requires
yiisoft/yii2 Version
*
dmstr/yii2-adminlte-asset Version 2.6.2
kartik-v/yii2-widget-select2 Version @dev
dmstr/yii2-adminlte-asset Version 2.6.2
kartik-v/yii2-widget-select2 Version @dev
The package pravda1979/yii2-core contains the following files
Loading the files please wait ....