forked from mithun12000/adminUI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAdminUiBootstrap.php
More file actions
31 lines (27 loc) · 864 Bytes
/
Copy pathAdminUiBootstrap.php
File metadata and controls
31 lines (27 loc) · 864 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<?php
namespace yii\adminUi;
use Yii;
use yii\base\BootstrapInterface;
class AdminUiBootstrap implements BootstrapInterface {
public function bootstrap($app) {
$app->set('view', [
'class' => 'yii\web\View',
'theme' => [
'pathMap' => ['@backend/views' => '@backend/themes/adminui'],
// for Admin theme which resides on extension/adminui
//'baseUrl' => '@web/themes/adminui',
],
]);
$app->set('assetManager', [
'class' => 'yii\web\AssetManager',
'bundles' => [
'backend\assets\AppAsset' => [
'depends' => [
'yii\adminUi\assetsBundle\AdminUiAsset'
],
],
],
'linkAssets' => true,
]);
}
}