-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathModule.php
More file actions
31 lines (25 loc) · 815 Bytes
/
Module.php
File metadata and controls
31 lines (25 loc) · 815 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 app\modules\frontpage;
class Module extends \yii\base\Module
{
public $controllerNamespace = 'frontpage\controllers';
// create an alias for this module:
private $aliases = [
'@frontpage' => __DIR__ // '@frontpage => app\modules\frontpage'
];
/**
* @var string the alias where the configuration array is located
* This parameter should be set in the Yii config file.
*/
public $sections = '@frontpage/defaults/sections.php';
/**
* @var string the alias where the configuration array is located
* This parameter should be set in the Yii config file.
*/
public $views = '@frontpage/defaults/views';
public function init()
{
$this->setAliases( $this->aliases );
parent::init();
}
}