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.

34 lines
800B

  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. /*
  7. * Autoload
  8. */
  9. Yii::$classMap['Import'] = Yii::getAlias('@common/exts/Import.php'); // sesuaikan pathnya
  10. // yii
  11. Import::using('Yii');
  12. Import::using('yii\filters\*');
  13. Import::using('yii\data\*');
  14. Import::using('yii\db\*');
  15. Import::using('yii\behaviors\*');
  16. Import::using('yii\helpers\*');
  17. Import::using('yii\web\NotFoundHttpException');
  18. // models
  19. Import::using('common\models\*');
  20. Import::using('frontend\models\*');
  21. Import::using('backend\models\*');
  22. // helpers
  23. Import::using('common\helpers\*');
  24. // pdf
  25. Import::using('kartik\mpdf\Pdf');