app.ini 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112
  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[0.password] = test
  21. ;hosts[1.domain] = admin.test.com
  22. ;hosts[1.path] = admin
  23. ;hosts[1.password] = admin
  24. ;用于检查系统环境的时候用到的密码,如果不填写就可以直接通过url进入
  25. admin[user] = admin
  26. admin[password] = 119328118
  27. ;是否开启调试模式,调试模式下,所有的错误都将抛出来,并终止运行
  28. debug = 1
  29. ;错误页面
  30. errorPage = Error:Index
  31. ;时间区域
  32. timezone = Asia/Shanghai
  33. ;文档类型
  34. contentType = text/html
  35. ;文档编码
  36. charset = UTF-8
  37. ;模板引擎
  38. view[engine] = smarty
  39. view[path] = view
  40. ;smarty 引擎的相关配置
  41. view[smarty.view] = view
  42. view[smarty.path] = view
  43. view[smarty.ldelimiter] = {#
  44. view[smarty.rdelimiter] = #}
  45. view[smarty.compile] = tmp/compile
  46. view[smarty.cache] = tmp/cache
  47. view[smarty.lifetime] = 300
  48. ;缓存类型
  49. cache = memcache
  50. ;是否开启安全验证,enable:是否开启安全验证;key:POST数据的时候安全字符串加密用到的key
  51. security[enable] = true
  52. security[name] = security_sid
  53. security[expired] = 3600
  54. security[key] = 4cd780a986d5c30e03bdcb67d16c8320
  55. ;memcache配置,多个服务器IP和端口以;隔开
  56. memcache[servers] = 127.0.0.1
  57. memcache[ports] = 11211
  58. ;搜索文件路径
  59. xpath[] = controller
  60. xpath[] = model
  61. xpath[] = class
  62. xpath[] = plugin
  63. ;map:为参数的顺序,当启用短URI标签的情况下会按照这个顺序去遍历参数;
  64. query[] = controller
  65. query[] = action
  66. query[] = param
  67. ;controller、action配置 name:参数名 ext:后缀;default:默认方法
  68. controller[name] = controller
  69. controller[prefix] = Controller
  70. controller[default] = index
  71. action[name] = action
  72. action[suffix] = Action
  73. action[default] = index
  74. ;url相关配置,用于生成链接用
  75. [uri]
  76. ;url模式,短链接模式
  77. mode = short
  78. controllerName = controller
  79. actionName = action
  80. normal[mode] = normal
  81. normal[trim] = 0
  82. normal[symbol] = "&"
  83. normal[extenstion] = .html
  84. middle[mode] = middle
  85. middle[trim] = 1
  86. middle[symbol] = "/"
  87. middle[extenstion] = .html
  88. short[mode] = short
  89. short[trim] = 1
  90. short[symbol] = "/"
  91. short[extenstion] = .html
  92. ;以下这种写法将会继承:后边的section,如果是"."开头的话就放在当前key下边
  93. [dev:common:.uri]
  94. password = 12345
  95. [product:common:.uri]
  96. password = 119328118