denis909/yii2-backend

dev-master 2021-02-20 09:49 UTC

This package is auto-updated.

Last update: 2024-04-20 16:57:27 UTC


README

Installation

backend/config/main.php

return [
    ...
    'components' => [
        'urlManager' => [
            'rules' => [
                'site/login' => 'login',
                'site/logout' => 'logout'
            ]
        ]
    ]
    ...
];

common/config/bootstrap.php

require dirname(dirname(__DIR__)) . '/vendor/denis909/yii2-backend/config/bootstrap.php';

All other configuration files are connected via CascadeConfig, but if you do not use it, connect them manually:

config/common.php
config/common-bootstrap.php
config/frontend.php
config/frontend-bootstrap.php
config/backend.php
config/backend-bootstrap.php
config/console.php
config/console-bootstrap.php