-
Notifications
You must be signed in to change notification settings - Fork 0
/
Module.php
51 lines (42 loc) · 1.03 KB
/
Module.php
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?php
namespace andahrm\structure;
use Yii;
/**
* structure module definition class
*/
class Module extends \yii\base\Module
{
/**
* @inheritdoc
*/
public $controllerNamespace = 'andahrm\structure\controllers';
/**
* @inheritdoc
*/
public function init()
{
parent::init();
// custom initialization code goes here
$this->setLayout();
//$this->registerTranslations();
}
/**
* Set Layout
*/
private function setLayout()
{
$this->layoutPath = '@andahrm/structure/views/layouts';
$this->layout = 'main';
}
// public function registerTranslations()
// {
// Yii::$app->i18n->translations['andahrm/*'] = [
// 'class' => 'yii\i18n\PhpMessageSource',
// 'sourceLanguage' => 'en-US',
// 'basePath' => '@andahrm/structure/messages',
// 'fileMap' => [
// 'andahrm/structure' => 'structure.php',
// ]
// ];
// }
}