Skip to content

Instantly share code, notes, and snippets.

@calcio
Created December 9, 2017 09:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calcio/f5084f28c68deb8709304627b5a0f180 to your computer and use it in GitHub Desktop.
Save calcio/f5084f28c68deb8709304627b5a0f180 to your computer and use it in GitHub Desktop.
Registering module admin in vitrine project
<?php
$params = require(__DIR__ . '/params.php');
$config = [
'id' => 'vitrine',
'basePath' => dirname(__DIR__),
'bootstrap' => ['log'],
'language' => 'pt-br',
'timezone' => 'America/Sao_Paulo',
'modules' => [
'admin' => [
'class' => 'app\modules\admin\Admin',
],
],
'components' => [],
];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment