Module.php 719 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * FecShop file.
  4. *
  5. * @link http://www.fecshop.com/
  6. * @copyright Copyright (c) 2016 FecShop Software LLC
  7. * @license http://www.fecshop.com/license/
  8. */
  9. namespace fecadmin;
  10. use Yii;
  11. /**
  12. * Category Service is the component that you can get category info from it.
  13. * @author Terry Zhao <2358269014@qq.com>
  14. * @since 1.0
  15. */
  16. class Module extends \fec\AdminModule
  17. {
  18. public function init()
  19. {
  20. # 以下代码必须指定
  21. $this->controllerNamespace = __NAMESPACE__ . '\\controllers';
  22. $this->_currentDir = __DIR__ ;
  23. $this->_currentNameSpace = __NAMESPACE__;
  24. # 指定默认的man文件
  25. $this->layout = "main_ajax.php";
  26. parent::init();
  27. }
  28. }