view.php 400 B

1234567891011121314
  1. <?php
  2. declare(strict_types=1);
  3. use Hyperf\View\Mode;
  4. return [
  5. 'engine' => App\View\Engine\SmartyEngine::class,
  6. 'mode' => Hyperf\View\Mode::SYNC,
  7. 'config' => [
  8. 'view_path' => BASE_PATH . '/storage/views/', // 必须有斜杠结尾
  9. 'compile_dir' => BASE_PATH . '/runtime/smarty/compile/',
  10. 'cache_dir' => BASE_PATH . '/runtime/smarty/cache/',
  11. ],
  12. ];