説明なし

config.php 1.1KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. /*
  3. * Modified: prepend directory path of current file, because of this file own different ENV under between Apache and command line.
  4. * NOTE: please remove this comment.
  5. */
  6. defined('BASE_PATH') || define('BASE_PATH', getenv('BASE_PATH') ?: realpath(dirname(__FILE__) . '/../..'));
  7. defined('APP_PATH') || define('APP_PATH', BASE_PATH . '/app');
  8. return new \Phalcon\Config([
  9. 'database' => [
  10. 'adapter' => 'Mysql',
  11. 'host' => 'localhost',
  12. 'username' => 'root',
  13. 'password' => '',
  14. 'dbname' => 'test',
  15. 'charset' => 'utf8',
  16. ],
  17. 'application' => [
  18. 'appDir' => APP_PATH . '/',
  19. 'controllersDir' => APP_PATH . '/controllers/',
  20. 'modelsDir' => APP_PATH . '/models/',
  21. 'migrationsDir' => APP_PATH . '/migrations/',
  22. 'viewsDir' => APP_PATH . '/views/',
  23. 'pluginsDir' => APP_PATH . '/plugins/',
  24. 'libraryDir' => APP_PATH . '/library/',
  25. 'cacheDir' => BASE_PATH . '/cache/',
  26. 'baseUri' => '/',
  27. ]
  28. ]);