global.config-original.php 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <?php
  2. /**
  3. *
  4. * GLOBAL CONFIG
  5. * ===============
  6. * global configuration file
  7. *
  8. * - initialize modules
  9. * - initialize global resources (db, session, [cache] etc)
  10. * - module settings will override global settings
  11. *
  12. */
  13. return array(
  14. 'modules' => array(
  15. 'App',
  16. 'Admin',
  17. 'Members',
  18. 'Listings',
  19. 'Install',
  20. ),
  21. 'locale' => array(
  22. 'default' => 'en_US',
  23. ),
  24. 'db' => array(
  25. 'adapter' => '\\Cube\\Db\\Adapter\\PDO\\Mysql',
  26. 'host' => '%DB_HOST%',
  27. 'dbname' => '%DB_NAME%',
  28. 'username' => '%DB_USERNAME%',
  29. 'password' => '%DB_PASSWORD%',
  30. 'prefix' => '%TABLES_PREFIX%',
  31. 'charset' => 'utf8'
  32. ),
  33. 'cache' => array(
  34. 'folder' => __DIR__ . '/../cache',
  35. 'queries' => false,
  36. 'metadata' => true,
  37. ),
  38. /* mail is global for all modules */
  39. 'mail' => array(
  40. 'transport' => 'mail',
  41. 'layouts_path' => __DIR__ . '/../themes/standard',
  42. 'views_path' => __DIR__ . '/../module/App/view/emails',
  43. 'layout_file' => 'email.phtml',
  44. ),
  45. /* navigation is global for all modules except Admin */
  46. 'navigation' => array(
  47. 'data_type' => 'xml',
  48. 'data_file' => __DIR__ . '/../module/App/config/data/navigation/navigation.xml',
  49. 'views_path' => __DIR__ . '/../module/App/view',
  50. ),
  51. /* session is global for all modules except Admin */
  52. 'session' => array(
  53. 'namespace' => '%SESSION_NAMESPACE%',
  54. 'secret' => '%SESSION_SECRET%',
  55. ),
  56. /* set folders used by the application (relative paths) */
  57. 'folders' => array(
  58. 'themes' => 'themes', // themes folder (relative path)
  59. 'img' => 'img', // global images folder (relative path)
  60. 'uploads' => 'uploads', // media uploads folder
  61. 'cache' => 'uploads/cache', // media uploads folder
  62. ),
  63. /* set paths used by the application (absolute) */
  64. 'paths' => array(
  65. 'base' => __DIR__ . '/..', // base path of the application
  66. 'languages' => __DIR__ . '/data/language', // languages folder
  67. 'themes' => __DIR__ . '/../themes',
  68. 'img' => __DIR__ . '/../img', // global images folder
  69. 'uploads' => __DIR__ . '/../uploads', // media uploads folder
  70. 'cache' => __DIR__ . '/../uploads/cache', // cached images folder
  71. ),
  72. 'translate' => array(
  73. 'adapter' => '\\Ppb\\Translate\\Adapter\\Composite',
  74. 'translations' => array(
  75. array(
  76. 'locale' => 'en_US',
  77. 'path' => __DIR__ . '/data/language/en_US',
  78. 'img' => 'flags/en_US.png',
  79. 'desc' => 'English',
  80. 'sources' => array(
  81. array(
  82. 'adapter' => '\\Cube\\Translate\\Adapter\\Gettext',
  83. 'extension' => 'mo',
  84. ),
  85. array(
  86. 'adapter' => '\\Cube\\Translate\\Adapter\\ArrayAdapter',
  87. 'extension' => 'php',
  88. ),
  89. ),
  90. ),
  91. ),
  92. ),
  93. );