Skip to content

MihailDev/yii2-backend

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

yii2-backend

The Backend extension for the Yii2 framework

Config file.

        'preload'=>['backend'],
        ...
        'components' => [
        ...
                'backend' => [
                        'class' => 'mihaildev\backend\Component',
                        
                        'onBackend' => function(){
                                Yii::$app->user->loginUrl = ['/backend/login'];
                        },
                        'onFrontend' => function(){
                                Yii::$app->user->loginUrl = ['/site/login'];
                        },
                
                
                ],
          ...
          ]

Controller (only for backend)

class SomeController extends Controller implements BackendControllerInterface{

}

About

The Backend extension for the Yii2 framework

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages