Blame view

vendor/kartik-v/yii2-krajee-base/Module.php 760 Bytes
583ea05f   andryeyev   + widget-select2
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
  <?php
  
  /**
   * @package   yii2-krajee-base
   * @author    Kartik Visweswaran <kartikv2@gmail.com>
   * @copyright Copyright &copy; Kartik Visweswaran, Krajee.com, 2014 - 2015
   * @version   1.7.7
   */
  
  namespace kartik\base;
  
  /**
   * Base module class for Krajee extensions
   *
   * @author Kartik Visweswaran <kartikv2@gmail.com>
   * @since 1.7.7
   */
  class Module extends \yii\base\Module
  {
      use TranslationTrait;
  
      /**
       * @var array the the internalization configuration for this widget
       */
      public $i18n = [];
  
      /**
       * @var string translation message file category name for i18n
       */
      protected $_msgCat = '';
  
      /**
       * @inheritdoc
       */
      public function init()
      {
          parent::init();
          $this->initI18N();
      }
  }