app.ini 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  1. ;通用配置,如果没有指定环境将使用通用配置,指定了环境,指定环境的配置将覆盖默认配置中的配置信息
  2. [author]
  3. name = 朱金辉
  4. email = jinhui.zhu@live.cn
  5. qq = 119328118
  6. [common]
  7. ;程序是否使用命名空间
  8. namespace['use'] = true
  9. namespace[list.controller] = true
  10. namespace[list.model] = true
  11. namespace[list.library] = true
  12. namespace[list.action] = true
  13. ;rewrite 方法, 此定义不能省略
  14. rewriteMethod = Short
  15. ;rewrite匹配规则,可选
  16. rewriteRules = Normal
  17. ;hosts中的属性将会覆盖掉默认的属性,当在不同域名上使用不同配置上很有用处
  18. ;hosts[0.domain] = test.com
  19. ;hosts[0.path] = test
  20. ;hosts[1.domain] = admin.test.com
  21. ;hosts[1.path] = admin
  22. ;是否开启调试模式,调试模式下,所有的错误都将抛出来,并终止运行
  23. debug = 1
  24. ;错误页面
  25. errorPage = Error:Index
  26. ;时间区域
  27. timezone = Asia/Shanghai
  28. ;文档类型
  29. contentType = text/html
  30. ;文档编码
  31. charset = UTF-8
  32. ;模板引擎
  33. view[engine] = smarty
  34. view[path] = view
  35. ;smarty 引擎的相关配置
  36. view[smarty.view] = view
  37. view[smarty.path] = view
  38. view[smarty.ldelimiter] = {#
  39. view[smarty.rdelimiter] = #}
  40. view[smarty.compile] = tmp/compile
  41. view[smarty.cache] = tmp/cache
  42. view[smarty.lifetime] = 300
  43. ;缓存类型
  44. cache = memcached
  45. ;是否开启安全验证,enable:是否开启安全验证;key:POST数据的时候安全字符串加密用到的key
  46. security[enable] = true
  47. security[name] = security_sid
  48. security[expired] = 3600
  49. security[key] = 4cd780a986d5c30e03bdcb67d16c8320
  50. ;memcached配置,多个服务器IP和端口以;隔开
  51. memcached[servers] = 127.0.0.1
  52. memcached[ports] = 11211
  53. ;redis配置,多个服务器IP和端口以;隔开
  54. redis[servers] = 127.0.0.1
  55. redis[ports] = 6379
  56. ;map:为参数的顺序,当启用短URI标签的情况下会按照这个顺序去遍历参数;
  57. query[] = controller
  58. query[] = action
  59. query[] = param
  60. ;controller、action配置 name:参数名 ext:后缀;default:默认方法
  61. controller[name] = controller
  62. controller[prefix] = controller
  63. controller[default] = index
  64. action[name] = action
  65. action[suffix] = Action
  66. action[default] = index
  67. ;url模式,短链接模式
  68. mode = short
  69. controllerName = controller
  70. actionName = action
  71. normal[mode] = normal
  72. normal[trim] = 0
  73. normal[symbol] = "&"
  74. normal[extenstion] = .html
  75. middle[mode] = middle
  76. middle[trim] = 1
  77. middle[symbol] = "/"
  78. middle[extenstion] = .html
  79. short[mode] = short
  80. short[trim] = 1
  81. short[symbol] = "/"
  82. short[extenstion] = .html
  83. ;url相关配置,用于生成链接用
  84. [uri]
  85. ;以下这种写法将会继承:后边的section,如果是"."开头的话就放在当前key下边
  86. [common:.uri]
  87. [dev:common:.uri]
  88. [product:common:.uri]