setting.php 1.0 KB

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. return array
  3. (
  4. 'token' => 'dever',
  5. 'lang' => 'zh-cn',
  6. 'lang_pack' => array('zh-cn' => '简体中文', 'en' => '英文'),
  7. 'route' => false,
  8. 'log' => array('type' => 'file', 'host' => 'host', 'port' => 'port'),
  9. 'shell' => 'debug',
  10. //'session' => array('host' => '', 'port' => '', 'path' => '', 'cookie' => ''),
  11. 'database' => array
  12. (
  13. 'opt' => true,
  14. //'default' => array($env['db'], $env['db1'], 'type' => 'Pdo'),
  15. 'default' => $env['db'],
  16. 'db1' => $env['db1'],
  17. # 分区设置
  18. 'partition' => array
  19. (
  20. # 类型:database 按照库拆分 table 按照表拆分 field 按照字段拆分 Dever::session('database', 1)可是设置值
  21. 'database' => 'date("Y")',
  22. 'table' => 'date("Ym")',
  23. # 字段类型需要定义相对应的字段
  24. //'field' => 'date("Y-m-d 23:60:60", strtotime("-1 day"))',
  25. 'field' => 'date("Y-m-d 23:60:60")',
  26. ),
  27. ),
  28. # 模板配置
  29. );