Config.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * Config
  4. *
  5. * Core system configuration file
  6. *
  7. * @package MicroMVC
  8. * @author David Pennington
  9. * @copyright (c) 2010 MicroMVC Framework
  10. * @license http://micromvc.com/license
  11. ********************************** 80 Columns *********************************
  12. */
  13. // Base site url - Not currently supported!
  14. $config['site_url'] = '/';
  15. // Enable debug mode?
  16. $config['debug_mode'] = FALSE;
  17. // Load boostrap file?
  18. $config['bootstrap'] = TRUE;
  19. // Available translations (Array of Locales)
  20. $config['languages'] = array('en');
  21. /**
  22. * Database
  23. *
  24. * This system uses PDO to connect to MySQL, SQLite, or PostgreSQL.
  25. * Visit http://us3.php.net/manual/en/pdo.drivers.php for more info.
  26. */
  27. $config['database'] = array(
  28. 'dns' => "mysql:host=localhost;port=3306;dbname=hello_world",
  29. 'username' => 'benchmarkdbuser',
  30. 'password' => 'benchmarkdbpass',
  31. 'params' => array()
  32. );
  33. /**
  34. * System Events
  35. */
  36. $config['events'] = array(
  37. //'pre_controller' => 'Class::method',
  38. //'post_controller' => 'Class::method',
  39. );
  40. /**
  41. * Cookie Handling
  42. *
  43. * To insure your cookies are secure, please choose a long, random key!
  44. * @link http://php.net/setcookie
  45. */
  46. $config['cookie'] = array(
  47. 'key' => 'very-secret-key',
  48. 'timeout' => time()+(60*60*4), // Ignore submitted cookies older than 4 hours
  49. 'expires' => 0, // Expire on browser close
  50. 'path' => '/',
  51. 'domain' => '',
  52. 'secure' => '',
  53. 'httponly' => '',
  54. );
  55. /**
  56. * API Keys and Secrets
  57. *
  58. * Insert you API keys and other secrets here.
  59. * Use for Akismet, ReCaptcha, Facebook, and more!
  60. */
  61. //$config['XXX_api_key'] = '...';