You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

42 lines
1.1KB

  1. <?php
  2. Yii::setAlias('common', dirname(__DIR__));
  3. Yii::setAlias('frontend', dirname(dirname(__DIR__)) . '/frontend');
  4. Yii::setAlias('backend', dirname(dirname(__DIR__)) . '/backend');
  5. Yii::setAlias('console', dirname(dirname(__DIR__)) . '/console');
  6. Yii::setAlias('producer', dirname(dirname(__DIR__)) . '/producer');
  7. /*
  8. * Autoload
  9. */
  10. Yii::$classMap['Import'] = Yii::getAlias('@common/exts/Import.php'); // sesuaikan pathnya
  11. // yii
  12. Import::using('Yii');
  13. Import::using('yii\filters\*');
  14. Import::using('yii\data\*');
  15. Import::using('yii\db\*');
  16. Import::using('yii\behaviors\*');
  17. Import::using('yii\helpers\*');
  18. Import::using('yii\web\NotFoundHttpException');
  19. // models
  20. Import::using('common\models\*');
  21. Import::using('frontend\models\*');
  22. Import::using('backend\models\*');
  23. // controllers
  24. Import::using('common\controllers\*');
  25. Import::using('frontend\controllers\*');
  26. Import::using('backend\controllers\*');
  27. Import::using('producer\controllers\*');
  28. // helpers
  29. Import::using('common\helpers\*');
  30. // components
  31. Import::using('common\components\*');
  32. Import::using('producer\components\*');
  33. // pdf
  34. Import::using('kartik\mpdf\Pdf');