3riangulum/yii-module-container

dev-master 2021-11-30 16:09 UTC

This package is auto-updated.

Last update: 2022-07-29 02:36:02 UTC


README

composer require 3riangulum/yii-module-container

Config Example

  1. backend/config/params.php
    $config['params']['App.root'] = ROOT;

    'App.UI.sys.template_throwable' => '@backend/views/system/_exception-handler',
    'App.UI.sys.template_view'      => '@backend/views/system/_view_action',
    'App.UI.sys.template_notify'    => '@backend/views/system/_notify_action',
    'App.UI.sys.template_delete'    => '@backend/views/system/_delete_action',  
  1. backend/config/params-local.php
    'App.IpWhiteList'        => [
        '127.0.0.1',
    ],
  1. backend/config/main.php
    'components'        => [
        'access'    => ['class' => AccessBase::class],
        'panelGrid' => [
            'class'      => PanelGrid::class,
            'panelClass' => 'panel-default slim',
            'viewBegin'  => '@backend/views/panel/_grid_begin',
            'viewEnd'    => '@backend/views/panel/_grid_end',
        ],
        'panelBase' => [
            'class'      => PanelBase::class,
            'panelClass' => 'panel-default slim',
            'viewBegin'  => '@backend/views/panel/_popup_begin',
            'viewEnd'    => '@backend/views/panel/_popup_end',
        ],  
    ],
    'modules'           => [
        DomainModule::ID         => [
            'class'                 => DomainModule::class,
            'id'                    => DomainModule::ID,
            'moduleParentNamespace' => 'backend\modules',
        ],  
    ]