app.ini 2.9 KB

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