{"id":15347,"date":"2024-11-17T20:31:30","date_gmt":"2024-11-17T12:31:30","guid":{"rendered":"https:\/\/fwq.ai\/blog\/?p=15347"},"modified":"2024-11-17T20:31:30","modified_gmt":"2024-11-17T12:31:30","slug":"yaf%e8%bf%90%e8%a1%8c%e6%97%b6%e9%85%8d%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/15347\/","title":{"rendered":"Yaf\u8fd0\u884c\u65f6\u914d\u7f6e"},"content":{"rendered":"<p>Yaf\u8fd0\u884c\u65f6\u7684\u73af\u5883\u914d\u7f6e\uff1a<\/p>\n<p>&nbsp;<\/p>\n<table border=\"1\" cellspacing=\"5\" cellpadding=\"5\">\n<tbody>\n<tr>\n<th width=\"10%\">\u540d\u5b57<\/th>\n<th width=\"10%\">\u9ed8\u8ba4<\/th>\n<th width=\"10%\">\u53ef\u4fee\u6539\u8303\u56f4<\/th>\n<th width=\"10%\">\u4f7f\u7528\u8bf4\u660e<\/th>\n<\/tr>\n<tr>\n<td>yaf.library<\/td>\n<td><\/td>\n<td>PHP_INI_ALL<\/td>\n<td>\u5168\u5c40\u7c7b\u5e93\u7684\u76ee\u5f55\u8def\u5f84\uff0c\u7a0d\u7b49\u4ecb\u7ecd<\/td>\n<\/tr>\n<tr>\n<td>yaf.action_prefer<\/td>\n<td>0<\/td>\n<td>PHP_INI_ALL<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>yaf.lowcase_path<\/td>\n<td>0<\/td>\n<td>PHP_INI_ALL<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>yaf.use_spl_autoload<\/td>\n<td>0<\/td>\n<td>PHP_INI_ALL<\/td>\n<td>\u5f00\u542f\u7684\u60c5\u51b5\u4e0b, Yaf\u5728\u52a0\u8f7d\u4e0d\u6210\u529f\u7684\u60c5\u51b5\u4e0b, \u4f1a\u7ee7\u7eed\u8ba9PHP\u7684\u81ea\u52a8\u52a0\u8f7d\u51fd\u6570\u52a0\u8f7d, \u4ece\u6027\u80fd\u8003\u8651, \u9664\u975e\u7279\u6b8a\u60c5\u51b5, \u5426\u5219\u4fdd\u6301\u8fd9\u4e2a\u9009\u9879\u5173\u95ed<\/td>\n<\/tr>\n<tr>\n<td>yaf.forward_limit<\/td>\n<td>5<\/td>\n<td>PHP_INI_ALL<\/td>\n<td>forward\u6700\u5927\u5d4c\u5957\u6df1\u5ea6<\/td>\n<\/tr>\n<tr>\n<td>yaf.name_suffix<\/td>\n<td>1<\/td>\n<td>PHP_INI_ALL<\/td>\n<td>\u5728\u5904\u7406Controller, Action, Plugin, Model\u7684\u65f6\u5019, \u7c7b\u540d\u4e2d\u5173\u952e\u4fe1\u606f\u662f\u5426\u662f\u540e\u7f00\u5f0f, \u6bd4\u5982UserModel, \u800c\u5728\u524d\u7f00\u6a21\u5f0f\u4e0b\u5219\u662fModelUser<\/td>\n<\/tr>\n<tr>\n<td>yaf.name_separator<\/td>\n<td><\/td>\n<td>PHP_INI_ALL<\/td>\n<td>\u5728\u5904\u7406Controller, Action, Plugin, Model\u7684\u65f6\u5019, \u524d\u7f00\u548c\u540d\u5b57\u4e4b\u95f4\u7684\u5206\u9694\u7b26, \u9ed8\u8ba4\u4e3a\u7a7a, \u4e5f\u5c31\u662fUserPlugin, \u52a0\u5165\u8bbe\u7f6e\u4e3a\u201d_\u201d, \u5219\u5224\u65ad\u7684\u4f9d\u636e\u5c31\u4f1a\u53d8\u6210:\u201dUser_Plugin\u201d, \u8fd9\u4e2a\u4e3b\u8981\u662f\u4e3a\u4e86\u517c\u5bb9ST\u5df2\u6709\u7684\u547d\u540d\u89c4\u8303<\/td>\n<\/tr>\n<tr>\n<td>yaf.cache_config<\/td>\n<td>0<\/td>\n<td>PHP_INI_SYSTEM<\/td>\n<td>\u662f\u5426\u7f13\u5b58\u914d\u7f6e\u6587\u4ef6(\u53ea\u9488\u5bf9INI\u914d\u7f6e\u6587\u4ef6\u751f\u6548), \u6253\u5f00\u6b64\u9009\u9879\u53ef\u5728\u590d\u6742\u914d\u7f6e\u7684\u60c5\u51b5\u4e0b\u63d0\u9ad8\u6027\u80fd<\/td>\n<\/tr>\n<tr>\n<td>yaf.environ<\/td>\n<td>product<\/td>\n<td>PHP_INI_SYSTEM<\/td>\n<td>\u73af\u5883\u540d\u79f0, \u5f53\u7528INI\u4f5c\u4e3aYaf\u7684\u914d\u7f6e\u6587\u4ef6\u65f6, \u8fd9\u4e2a\u6307\u660e\u4e86Yaf\u5c06\u8981\u5728INI\u914d\u7f6e\u4e2d\u8bfb\u53d6\u7684\u8282\u7684\u540d\u5b57<\/td>\n<\/tr>\n<tr>\n<td>yaf.use_namespace<\/td>\n<td>0<\/td>\n<td>PHP_INI_SYSTEM<\/td>\n<td>\u5f00\u542f\u7684\u60c5\u51b5\u4e0b, Yaf\u5c06\u4f1a\u4f7f\u7528\u547d\u540d\u7a7a\u95f4\u65b9\u5f0f\u6ce8\u518c\u81ea\u5df1\u7684\u7c7b, \u6bd4\u5982Yaf_Application\u5c06\u4f1a\u53d8\u6210Yaf\\Application<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Yaf\u8fd0\u884c\u65f6\u7684\u73af\u5883\u914d\u7f6e\uff1a &nbsp; \u540d\u5b57 \u9ed8\u8ba4 \u53ef\u4fee\u6539\u8303\u56f4 \u4f7f\u7528\u8bf4\u660e yaf.library PHP_INI_ALL \u5168\u5c40\u7c7b\u5e93\u7684\u76ee\u5f55\u8def\u5f84\uff0c\u7a0d\u7b49\u4ecb\u7ecd yaf.action_prefer 0 PHP_INI_ALL yaf.lowcase_path 0 PHP_INI_ALL yaf.use_spl_autoload 0 PHP_INI_ALL \u5f00\u542f\u7684\u60c5\u51b5\u4e0b, Yaf\u5728\u52a0\u8f7d\u4e0d\u6210\u529f\u7684\u60c5\u51b5\u4e0b, \u4f1a\u7ee7\u7eed\u8ba9PHP\u7684\u81ea\u52a8\u52a0\u8f7d\u51fd\u6570\u52a0\u8f7d, \u4ece\u6027\u80fd\u8003\u8651, \u9664\u975e\u7279\u6b8a\u60c5\u51b5, \u5426\u5219\u4fdd\u6301\u8fd9\u4e2a\u9009\u9879\u5173\u95ed yaf.forward_limit 5 PHP_INI_ALL forward\u6700\u5927\u5d4c\u5957\u6df1\u5ea6 yaf.name_suffix 1 PHP_INI_ALL \u5728\u5904\u7406Controller, Action, Plugin, Model\u7684\u65f6\u5019, \u7c7b\u540d\u4e2d\u5173\u952e\u4fe1\u606f\u662f\u5426\u662f\u540e\u7f00\u5f0f, \u6bd4\u5982UserModel, \u800c\u5728\u524d\u7f00\u6a21\u5f0f\u4e0b\u5219\u662fModelUser yaf.name_separator PHP_INI_ALL \u5728\u5904\u7406Controller, Action, Plugin, Model\u7684\u65f6\u5019, \u524d\u7f00\u548c\u540d\u5b57\u4e4b\u95f4\u7684\u5206\u9694\u7b26, \u9ed8\u8ba4\u4e3a\u7a7a, \u4e5f\u5c31\u662fUserPlugin, \u52a0\u5165\u8bbe\u7f6e\u4e3a\u201d_\u201d, \u5219\u5224\u65ad\u7684\u4f9d\u636e\u5c31\u4f1a\u53d8\u6210:\u201dUser_Plugin\u201d, \u8fd9\u4e2a\u4e3b\u8981\u662f\u4e3a\u4e86\u517c\u5bb9ST\u5df2\u6709\u7684\u547d\u540d\u89c4\u8303 yaf.cache_config 0 PHP_INI_SYSTEM \u662f\u5426\u7f13\u5b58\u914d\u7f6e\u6587\u4ef6(\u53ea\u9488\u5bf9INI\u914d\u7f6e\u6587\u4ef6\u751f\u6548), \u6253\u5f00\u6b64\u9009\u9879\u53ef\u5728\u590d\u6742\u914d\u7f6e\u7684\u60c5\u51b5\u4e0b\u63d0\u9ad8\u6027\u80fd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[17],"tags":[],"class_list":["post-15347","post","type-post","status-publish","format-standard","hentry","category-docker"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/15347","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=15347"}],"version-history":[{"count":1,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/15347\/revisions"}],"predecessor-version":[{"id":15348,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/15347\/revisions\/15348"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=15347"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=15347"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=15347"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}