{"id":2257,"date":"2020-05-15T18:52:49","date_gmt":"2020-05-15T10:52:49","guid":{"rendered":"http:\/\/ufqi.com\/blog\/?p=2257"},"modified":"2020-05-16T11:47:25","modified_gmt":"2020-05-16T03:47:25","slug":"gwa2-updt-template-engine","status":"publish","type":"post","link":"https:\/\/ufqi.com\/blog\/gwa2-updt-template-engine\/","title":{"rendered":"GWA2\u5409\u5a03\u5154\ud83d\udc07\u5347\u7ea7\u6a21\u677f\u5f15\u64ce\u5b50\u7cfb\u7edf"},"content":{"rendered":"<p>\u8fd1\u671f\uff0c\u5168\u7403\u8303\u56f4\u5185\u7684\u65b0\u51a0\u80ba\u708e\u75ab\u60c5\u6709\u6240\u7f13\u89e3\uff0c\u6297\u51fb\u75ab\u60c5\u6709\u53d1\u5c55\u6210\u4e3a\u5e38\u6001\u5316\u7684\u8d8b\u52bf\uff0c\u590d\u5de5\u590d\u5b66\u6b63\u6709\u5e8f\u5c55\u5f00\u3002GWA2 \u5409\u5a03\u5154\ud83d\udc07 \u5728\u6b64\u671f\u95f4\u5347\u7ea7\u6539\u8fdb\u4e86\u6a21\u677f\u5f15\u64ce\u7cfb\u7edf\u3002<\/p>\n<p><strong>\u8fd9\u662f\u4e00\u4ef6\u4ee4\u4eba\u5f00\u5fc3\u7684\u4e8b\uff0c\u5919\u613f\u5df2\u4e45\uff0c\u7ec8\u5f97\u5b9e\u73b0\u3002<\/strong><br \/><strong>\u5927\u7ea6<\/strong>7-8\u5e74\u524d\uff0c\u5f53\u6211\u4eec\u5b8c\u6210GWA2 PHP\u7248\u672c\u6240\u6709\u4e3b\u8981\u529f\u80fd\u67b6\u6784\u540e\uff0c\u5f00\u59cb\u5ba1\u89c6\u4ee3\u7801\u8fdb\u884c\u52a0\u5f3a\u548c\u4f18\u5316\u65f6\uff0c\u5c31\u8bbe\u60f3\u5728\u6a21\u677f\u6587\u4ef6\u7684\u52a0\u8f7d\u90e8\u5206\u9700\u8981\u4f18\u5316\u6539\u8fdb\u3002 \u8fd9\u4e00\u8bbe\u60f3\uff0c\u62d6\u6765\u62d6\u53bb\uff0c\u7adf\u7136\u67097-8\u5e74\u8fc7\u53bb\u4e86\u3002<\/p>\n<p>\u901a\u5e38\u60c5\u51b5\u4e0b\uff0cGWA2\u4e13\u6ce8\u4e8e\u67b6\u6784\u8bbe\u8ba1\uff0c\u9075\u5faa MVC\u7684\u8bbe\u8ba1\u7406\u5ff5\uff0c\u5c06 V\uff08\u89c6\u56fe\uff09\u7684\u5de5\u4f5c\u4ea4\u7ed9\u4e86\u5f53\u65f6\u9009\u5b9a\u7684 Smarty\u6a21\u677f\u5f15\u64ce\u6765\u5904\u7406\u3002\u50cf\u6211\u4eec\u5728\u6b64\u524d\u8ba8\u8bba\u7684\u4e00\u6837\uff0cSmarty\u6a21\u677f\u5f15\u64ce\u88ab\u9009\u4e2d\uff0c\u662f\u6709\u4e00\u4e9b\u8003\u8651\u5728\u91cc\u9762\uff08\u53c2\u8003:<a title=\"Permalink to \u3297\ufe0f GWA2\/\u5409\u5a03\u5154\u516b\u5468\u5e74\u5566\uff01GWA2\u5185\u7f6e\u6a21\u677f\u5f15\u64ce\u6210\u529f\u7531Smarty\u66ff\u6362\u4e3aHanjst\" href=\"https:\/\/ufqi.com\/blog\/gwa2-8-years-with-smarty-to-hanjst\/\" rel=\"bookmark\">\u3297\ufe0f GWA2\/\u5409\u5a03\u5154\ud83d\udc07\u516b\u5468\u5e74\u5566\uff01GWA2\u5185\u7f6e\u6a21\u677f\u5f15\u64ce\u6210\u529f\u7531Smarty\u66ff\u6362\u4e3aHanjst<\/a>\u00a0, https:\/\/ufqi.com\/blog\/gwa2-8-years-with-smarty-to-hanjst\/ \uff09\uff1b\u540c\u6837\u5730\uff0c\u5f53\u6211\u4eec\u4f7f\u7528 Hanjst\u6c49\u5409\u65af\u7279\u66ff\u6362 Smarty\u65f6\uff0c\u4e5f\u662f\u5bf9\u8fd9\u4e9b\u8003\u8651\u7684\u518d\u6b21\u5ba1\u89c6\u3002<\/p>\n<p>\u91cd\u542f\u8fd9\u4e00\u95ee\u9898\uff0c\u662f\u56e0\u4e3a GWA2\u5728\u51c6\u5907\u6570\u636e\u548c\u6a21\u677f\u6587\u4ef6\u4e4b\u540e\uff0c\u5728\u6a21\u677f\u5f15\u64ce\u5de5\u4f5c\u4e4b\u524d\uff0c\u8fd8\u6709\u4e00\u4e9b\u5de5\u4f5c\u9700\u8981\u5904\u7406\uff0c\u8fd9\u5c31\u662f GWA2\u7684\u6a21\u677f\u5f15\u64ce\u5b50\u7cfb\u7edf\u7684\u9884\u5904\u7406\u90e8\u5206\u3002\u8fd9\u90e8\u5206\u4e3b\u8981\u5305\u62ec\u5927\u81f4\u4e24\u65b9\u9762\u7684\u5de5\u4f5c\u3002<\/p>\n<ol>\n<li><strong>GWA2 \u6a21\u677f\u5f15\u64ce\u5b50\u7cfb\u7edf\u7684\u4e24\u4ef6\u5de5\u4f5c<\/strong>\n<ol>\n<li><strong>\u6a21\u677f\u5b50\u7cfb\u7edf\u4e4b\u524d\u9884\u5904\u7406<\/strong><br \/>GWA2 \u5728\u7ed3\u675f\u4e00\u6b21\u8bf7\u6c42\u7684\u4e1a\u52a1\u5904\u7406\u4e4b\u540e\uff0c\u4f1a\u6839\u636e\u8f93\u51fa\u53d8\u91cf fmt \u7684\u5177\u4f53\u60c5\u51b5\u6765\u51b3\u5b9a\u5c06\u8981\u8f93\u51fa\u5185\u5bb9\u7684\u683c\u5f0f\uff0c\u662f\u7eaf\u6587\u672c\uff0c\u8fd8\u662f\u666e\u901a\u7684HTML\uff0c\u8fd8\u662fJSON \u6216\u8005 XML\u3002<br \/>\u5728\u8fd9\u4e00\u6b65\u5b8c\u6210\u540e\uff0c\u5982\u679c\u9700\u8981\u8f93\u51faHTML\uff0c\u5728\u6307\u5b9a\u4e86\u5f85\u8f93\u51fa\u7684\u6a21\u677f\u6587\u4ef6\u4e4b\u540e\uff0c\u4f59\u4e0b\u7684\u5de5\u4f5c\u5c06\u7531\u6a21\u677f\u5f15\u64ce\u6765\u8ddf\u8fdb\u5904\u7406\u3002<br \/>\u00a0.<\/li>\n<li><strong>\u8bbe\u8ba1\u5c42\u7684\u9759\u6001\u5185\u5bb9\u66ff\u6362\uff1a\u8d44\u6e90\u8def\u5f84\u3001\u5173\u952e\u8bcd\u7b49<br \/><\/strong>\u901a\u5e38\u7684\u8f6f\u4ef6\u9879\u76ee\u5f00\u53d1\u4e2d\uff0c\u8bbe\u8ba1\u5e08\u548c\u5de5\u7a0b\u5e08\uff0c\u524d\u7aef\u5de5\u7a0b\u5e08\u548c\u540e\u53f0\u5de5\u7a0b\u5e08\uff0c\u662f\u4e0d\u540c\u7684\u89d2\u8272\uff0c\u7531\u4e0d\u540c\u7684\u4eba\u6765\u62c5\u4efb\u3002\u8fd9\u4e3b\u8981\u662f\u7531\u4e8e\u4ed6\u4eec\u5404\u81ea\u7684\u5de5\u4f5c\u4e0d\u540c\u3002<br \/>\u5728\u7f51\u7edc\u5e94\u7528\u4e2d\uff0c\u7279\u522b\u662f\u7f51\u9875\u5e94\u7528\u4e2d\uff0c\u89c6\u56fe\u901a\u5e38\u662f\u666e\u901a\u7684HTML\uff0c\u5f53\u524d\u7aef\u5de5\u7a0b\u5e08\u5c06HTML\u51c6\u5907\u597d\u4e4b\u540e\uff0c\u76f8\u5e94\u7684HTML\u6587\u4ef6\u88ab\u6dfb\u52a0\u5230\u9879\u76ee\u4ee3\u7801\u5e93\u4e2d\u3002\n<p>\u53ea\u662f\u8fd9\u6837\u7684HTML\u539f\u6587\u4ef6\u8fd8\u4e0d\u80fd\u76f4\u63a5\u4f7f\u7528\u3002\u4e3b\u8981\u539f\u56e0\u5305\u62ec\uff0c\u9700\u8981\u9700\u8981\u6539\u4e00\u4e9b\u9875\u9762\u7684\u5934\u90e8\u548c\u5c3e\u90e8\u5171\u7528\u7684\u90e8\u5206\uff0c\u8fd9\u4e9b\u5171\u7528\u7684\u90e8\u5206\uff0c\u9700\u8981\u63d0\u53d6\u51fa\u6765\uff0c\u5355\u72ec\u5b58\u653e\uff0c\u4ee5\u4fbf\u4e8e\u5171\u7528\uff0c\u6216\u8005\u5b9e\u73b0\u6a21\u677f\u7684\u5d4c\u5957\u7b49\u9ad8\u7ea7\u529f\u80fd\u3002<\/p>\n<p>\u53e6\u5916\u4e00\u9879\u5fc5\u4e0d\u53ef\u5c11\u7684\u5de5\u4f5c\u662f\u5bf9\u8d44\u6e90\u8def\u5f84\u3001\u5173\u952e\u8bcd\u8fdb\u884c\u66ff\u6362\u7b49\u3002\u539f\u59cb\u7684HTML\u4ee3\u7801\u53ef\u80fd\u662f\u5982\u4e0b\u8fd9\u6837\u7684\u60c5\u51b5\uff1a<br \/>&#8230;.<br \/>&lt;img src=&#8221;images\/abc.png&#8221; alt=&#8221;an image&#8221;\/&gt;<br \/>&#8230;<\/p>\n<p>\u8fd9\u91cc\u7684\u4e00\u4e2a\u56fe\u7247\u5143\u7d20\uff0c\u5176\u8def\u5f84\u662f\u76f8\u5bf9\u8def\u5f84\uff0c\u800c\u5230\u670d\u52a1\u5668\u7aef\u771f\u5b9e\u73af\u5883\u65f6\uff0c\u53ef\u80fd\u76f8\u5bf9\u8def\u5f84\u5c31\u4e0d\u80fd\u7528\u4e86\uff0c\u5b83\u4e0e\u7528\u6237\u5b9e\u9645\u8bbf\u95ee\u7684\u8def\u5f84\u53ef\u80fd\u4e0d\u5728\u4e00\u4e2a\u5730\u65b9\u3002\u8fd9\u65f6\u5019\uff0c\u5c31\u9700\u8981\u5bf9 &#8220;images\/&#8221; \u8fdb\u884c\u66ff\u6362\u64cd\u4f5c\u3002<br \/>\u8fd9\u6b21\u66ff\u6362\u64cd\u4f5c\uff0c\u662f\u6bcf\u6b21\u6a21\u677f\u52a0\u8f7d\u65f6\u90fd\u662f\u52a8\u6001\u66ff\u6362\u7684\u3002<br \/>\u5982\u679c\u6ca1\u6709\u6a21\u677f\u7f13\u5b58\uff0c\u5219\u6bcf\u6b21\u90fd\u9700\u8981\u52a8\u6001\u66ff\u6362\uff0c\u9664\u975e\u7a0b\u5e8f\u5f00\u53d1\u4eba\u5458\u5728\u62ff\u5230HTML\u6587\u4ef6\u65f6\u624b\u5de5\u7ed9\u4fee\u6539\u4e00\u6b21\u3002<br \/>\u8fd9\u662f\u7406\u667a\u7684\uff0c\u5374\u4e0d\u662f\u5b9e\u9645\u53ef\u64cd\u4f5c\u7684\uff0c\u56e0\u4e3a\u8bbe\u8ba1\u5e08\u548c\u524d\u7aef\u5de5\u7a0b\u5e08\u901a\u5e38\u9700\u8981\u4fee\u6539HTML\uff0c\u6bcf\u6b21\u9012\u4ea4\u5230\u7cfb\u7edf\u90fd\u6765\u4e00\u6b21\u8fd9\u6837\u7684\u624b\u5de5\u66ff\u6362\u4fee\u6539\uff0c\u662f\u607c\u4eba\u7684\uff0c\u4e5f\u662f\u4e0d\u53ef\u9760\u7684\u3002<\/p>\n<p>\u6240\u4ee5\uff0c\u591a\u6b21\u5b9e\u8df5\u4e4b\u540e\uff0c\u6211\u4eec\u8003\u8651\u8fd8\u662f\u5c06\u8fd9\u90e8\u5206\u5de5\u4f5c\u4ea4\u7ed9\u7a0b\u5e8f\u548c\u7cfb\u7edf\u53bb\u505a\u6bd4\u8f83\u53ef\u9760\u3002\u4e0e\u4e4b\u5bf9\u5e94\u7684\uff0c\u6a21\u677f\u5e94\u8be5\u6709\u7f13\u5b58\u673a\u5236\uff0c\u8fd9\u4e5f\u662f\u6211\u4eec\u6700\u65e9\u5c31\u6ce8\u610f\u5230\u8981\u4f18\u5316\u7684\u5730\u65b9\u4e4b\u4e00\u3002<br \/>.<\/li>\n<li><strong>\u6a21\u677f\u6587\u4ef6\u7684\u8bfb\u53d6\u52a0\u8f7d<br \/><\/strong>\u6a21\u677f\u6587\u4ef6\u5728\u5b8c\u6210\u52a8\u6001\u66ff\u6362\u540e\uff0c\u8fd8\u9700\u8981\u5b9e\u9645\u7684\u5b9e\u73b0\u4ece\u78c1\u76d8\u6587\u4ef6\u8bfb\u53d6\u7136\u540e\u8f93\u51fa\u7ed9\u5ba2\u6237\u7aef\u7684\u8fc7\u7a0b\u3002<strong>\n<p><\/strong>\u8fd9\u4e00\u8fc7\u7a0b\u7684\u7f13\u5b58\u4e5f\u5c24\u4e3a\u91cd\u8981\u3002\u5982\u679c\u7f13\u5b58\u4e86\u76f8\u5173\u9875\u9762\uff0c\u5219\u6bcf\u6b21\u8bfb\u53d6\u65f6\uff0c\u4e0d\u9700\u8981\u78c1\u76d8\u64cd\u4f5c\uff0c\u76f4\u63a5\u4ece\u76f8\u5e94\u7684\u5185\u5b58\u7f13\u5b58\u4e2d\u8fdb\u884c\u8bfb\u53d6\uff0c\u901f\u5ea6\u4f1a\u5927\u5e45\u63d0\u5347\u3002<strong><br \/><\/strong>\u989d\u5916\u5730\uff0c\u6709\u4e9b\u6a21\u677f\u5f15\u64ce\u8fd8\u80fd\u591f\u5bf9\u6a21\u677f\u8fdb\u884c\u9884\u7f16\u8bd1\uff0c\u8fdb\u800c\u66f4\u5feb\u5730\u63d0\u5347\u6a21\u677f\u5f15\u64ce\u7684\u5904\u7406\u901f\u5ea6\u3002<strong><br \/>.<\/strong><\/li>\n<\/ol>\n<\/li>\n<li><strong>GWA2\u517c\u5bb9 Smarty\u6a21\u677f\u5f15\u64ce \u548c Hanjst\u6c49\u5409\u65af\u7279\u6a21\u677f\u5f15\u64ce<\/strong>\n<ol>\n<li><strong>Hanjst\u6c49\u5409\u65af\u7279\u6a21\u677f\u5f15\u64ce<br \/><\/strong>Hanjst\u6c49\u5409\u65af\u7279\u662f\u76ee\u524d GWA2 \u9ed8\u8ba4\u7684\u548c\u63a8\u8350\u7684\u6a21\u677f\u5f15\u64ce\u3002(\u53c2\u8003\uff1a\u00a0<a href=\"https:\/\/ufqi.com\/blog\/category\/hanjst\/\">https:\/\/ufqi.com\/blog\/category\/hanjst\/<\/a>\u00a0)<br \/>Hanjst \u5728\u63a5\u7ba1\u6a21\u677f\u52a0\u8f7d\u5de5\u4f5c\u540e\uff0c\u4e5f\u9700\u8981\u9700\u8981\u5b8c\u6210\u4e0a\u8ff0\u4e24\u9879\u5de5\u4f5c\u3002\u901a\u8fc7\u78c1\u76d8\u6587\u4ef6\u7cfb\u7edf\u8bfb\u53d6\u6a21\u677f\u6587\u4ef6\uff0c\u8fdb\u884c\u66ff\u6362\u8d44\u6e90\u8def\u5f84\u64cd\u4f5c\uff0c\u7136\u540e\u518d\u5c06\u66ff\u6362\u540e\u7684\u6a21\u677f\u5185\u5bb9\u4e0e\u8981\u8f93\u51fa\u7684\u73af\u5883\u53d8\u91cf\u5185\u5bb9\u4e00\u5e76\u8f93\u51fa\u5230\u524d\u7aef\u3002\n<p>\u5728\u524d\u7aef\u9875\u9762\u901a\u8fc7 JavaScript\u5b8c\u6210\u6570\u636e\u5185\u5bb9\u4e0e\u6a21\u677f\u5f62\u5f0f\u7684\u878d\u5408\u3002<br \/>\u52a0\u5165\u6a21\u677f\u5f15\u64ce\u5b50\u7cfb\u7edf\u7684\u7f13\u5b58\u540e\uff0c\u4e0a\u9762\u7684\u9884\u64cd\u4f5c\uff08\u8bfb\u53d6\u6a21\u677f\u6587\u4ef6\uff0c\u66ff\u6362\u9759\u6001\u5185\u5bb9\uff09\u5c31\u53ef\u4ee5\u7701\u7565\uff0c\u5176\u4ec5\u5728\u7f13\u5b58\u5931\u6548\u7684\u60c5\u51b5\u4e0b\u518d\u91cd\u65b0\u505a\u4e00\u904d\u9884\u64cd\u4f5c\u7684\u5de5\u4f5c\u3002\u5f53\u9884\u64cd\u4f5c\u5b8c\u6210\u540e\uff0c\u8fdb\u884c\u7f13\u5b58\u5199\u64cd\u4f5c\uff0c\u4ee5\u4fbf\u63a5\u4e0b\u6765\u7684\u7b2c\u4e8c\u6b21\u8bf7\u6c42\u4f7f\u7528\u7f13\u5b58\u5185\u7684\u6a21\u677f\u5f62\u5f0f\uff0c\u4ece\u800c\u907f\u514d\u4e86\u8bfb\u53d6\u78c1\u76d8\u6587\u4ef6\u5185\u5bb9\u7136\u540e\u8fdb\u884c\u9759\u6001\u5185\u5bb9\u66ff\u6362\u7b49\u64cd\u4f5c\u3002<br \/><strong>\u63d0\u5347\u4e86\u6a21\u677f\u52a0\u8f7d\u6548\u7387\uff0c\u4e5f\u63d0\u5347\u4e86\u7cfb\u7edf\u5904\u7406\u901f\u5ea6\u3002<br \/>.<\/strong><\/li>\n<li><strong>Smarty\u6a21\u677f\u5f15\u64ce<br \/>Smarty\u6a21\u677f\u5f15\u64ce\u5373\u5c06\u88ab\u66ff\u6362\u6389\u3002\u5728 GWA2 \u4e2d\uff0c\u6211\u4eec\u5c06\u5728\u672a\u6765\u7684\u7248\u672c\u9010\u6e10\u4f7f\u7528 Hanjst \u66ff\u6362\u6389 Smarty . \u76ee\u524d GWA2 Java\u7684\u6a21\u677f\u5f15\u64ce\u5df2\u7ecf\u5347\u7ea7\u4e3a Hanjst. GWA2 PHP\u7684\u6a21\u677f\u5f15\u64ce\u8fd8\u662f Smarty\uff0c\u9884\u8ba1\u4f1a\u5728\u672a\u67651-2\u5e74\u5185\u5b8c\u6210\u4ece Smarty \u5230 Hanjst \u7684\u5347\u7ea7.<\/strong>\n<p>\u5728\u73b0\u6709\u7684\u7248\u672c\u4e2d\uff0c\u6211\u4eec\u4e5f\u5bf9 Smarty\u6a21\u677f\u8fdb\u884c\u4e86\u4e00\u5b9a\u7684\u7f13\u5b58\u652f\u6301\u5347\u7ea7\u6539\u8fdb\u3002\u65e9\u524dSmarty \u672c\u8eab\u5df2\u7ecf\u5177\u6709\u4e00\u5b9a\u7684\u9884\u7f16\u8bd1\u4e0e\u7f13\u5b58\u64cd\u4f5c\u3002<br \/>GWA2 \u7684\u9884\u64cd\u4f5c\u5728\u5176\u4e4b\u524d\uff0c\u4e5f\u5373\u8bfb\u53d6\u6587\u4ef6\u5e76\u505a\u9759\u6001\u8def\u5f84\u66ff\u6362\u7b49\u3002<br \/>\u589e\u52a0\u4e86\u8fd9\u4e9b\u9884\u64cd\u4f5c\u7684\u7f13\u5b58\u4e4b\u540e\uff0cGWA2\u7684 Smarty \u6a21\u677f\u5f15\u64ce\u5b50\u7cfb\u7edf\u6709\u671b\u8dd1\u5f97\u66f4\u5feb\u3002<br \/>.<\/li>\n<\/ol>\n<\/li>\n<li><strong>GWA2 \u6a21\u677f\u5b50\u7cfb\u7edf\u7f13\u5b58\u5f00\u5173\u00a0<\/strong><br \/>\u7f13\u5b58\u5bf9\u6b63\u5f0f\u8fd0\u884c\u73af\u5883\u6709\u5e2e\u52a9\uff0c\u8f83\u660e\u663e\u5730\u6027\u80fd\u63d0\u5347\uff0c\u4f46\u5bf9\u5f00\u53d1\u73af\u5883\u6709\u5e72\u6270\u3002<br \/>\u4e5f\u5373\u4fee\u6539\u4e0d\u80fd\u53ca\u65f6\u63d0\u73b0\u51fa\u6765\uff0c\u6709\u7f13\u5b58\u5468\u671f\u3002\u6709\u9274\u4e8e\u6b64\uff0c\u6211\u4eec\u5728 GWA2 \u4e2d\u5bf9\u6a21\u677f\u7f13\u5b58\u5f00\u542f\u8bbe\u7f6e\u4e86\u4e24\u4e2a\u53d8\u91cf\u5f00\u5173\uff1a is_debug \u548c enable_cache .\n<p>\u53ea\u6709 is_debug == false \u5e76\u4e14 enable_cache == true \u65f6\uff0c\u624d\u4f1a\u5f00\u542f GWA2 \u7684\u6a21\u677f\u5f15\u64ce\u7684\u7f13\u5b58\u3002 \u524d\u8005\u7684\u53d8\u91cf\u662f\u9488\u5bf9\u662f\u5426\u5f00\u53d1\u73af\u5883\u7684\u7ea6\u675f\uff0c\u5982\u679c\u662f\u5f00\u53d1\u73af\u5883\uff0c\u5219\u4e0d\u4f1a\u5f00\u542f\u7f13\u5b58\uff0c\u4efb\u4f55\u5728\u6a21\u677f\u6587\u4ef6\u4e0a\u7684\u4fee\u6539\u5373\u53ef\u751f\u6548\u3002<br \/>\u53ea\u6709 enable_cache == true \u624d\u80fd\u591f\u652f\u6301\u6a21\u677f\u5f15\u64ce\u7684\u7f13\u5b58\uff0c\u5426\u5219\u65e0\u5904\u7f13\u5b58\u3002<\/p>\n<p>\u56e0\u6b64\uff0c\u5982\u679c\u4e0d\u60f3\u542f\u7528\u6a21\u677f\u5f15\u64ce\u7f13\u5b58\uff0c\u53ef\u4ee5\u4efb\u610f\u4fee\u6539\u8fd9\u4e24\u4e2a\u63a7\u5236\u53d8\u91cf\u5176\u4e2d\u4e00\u4e2a\u5373\u53ef\u3002\u5f53\u7136\uff0c\u4e5f\u53ef\u4ee5\u5728\u8f93\u51fa\u63a7\u5236\u7684\u7a0b\u5e8f\u91cc comm\/footer.inc \u4e2d\u76f4\u63a5\u64cd\u4f5c enableTplCache \u53d8\u91cf\uff0c\u4f7f\u4e4b\u59cb\u7ec8\u5f00\u6216\u8005\u5173\u3002<\/p>\n<p>\u6b64\u5916\uff0c\u6211\u4eec\u8fd8\u5355\u72ec\u63d0\u4f9b\u4e86\u6a21\u677f\u7f13\u5b58\u7684\u5355\u72ec\u6709\u6548\u671f\u53d8\u91cf\uff0c tplCacheExpire, \u5176\u9ed8\u8ba4\u53d6\u81ea\u4e8e GWA2 \u7684\u7f13\u5b58\u6709\u6548\u65f6\u957f\u3002<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>\u4e94\u6708\u662f\u7f8e\u597d\u7684\u5b63\u8282\uff0c\u5728\u59f9\u7d2b\u5ae3\u7ea2\u3001\u9ea6\u6d6a\u6eda\u6eda\u7684\u65f6\u5149\u91cc\uff0c\u4ece\u66f4\u6df1\u5c42\u9762\u8fd1\u4e4e\u5b8c\u7f8e\u5730\u5b9e\u73b0\u4e86\u591a\u5e74\u6765\u7684\u4e00\u4e2a\u5fc3\u613f\uff0c\u6240\u8c13\u5e78\u798f\uff0c\u5927\u62b5\u5982\u6b64\u3002\u5bf9\u4e2a\u4eba\u5982\u6b64\uff0c\u5bf9 GWA2 \u793e\u7fa4\uff0c\u5e94\u8be5\u4e5f\u662f\u798f\u97f3\u3002<\/p>\n<p>\u5df2\u7ecf\u542f\u7528\u6a21\u677f\u5f15\u64ce\u7f13\u5b58\u7cfb\u7edf\u7684\u4ea7\u54c1\u5305\u62ec <a href=\"https:\/\/ufqi.com\/news\/\">\u6709\u798f\u65b0\u95fb<\/a>( https:\/\/ufqi.com\/news\/ ) | <a href=\"https:\/\/ufqi.com\/news\/mod.ulong.html\">\u6709\u798f\u5e38\u5728<\/a>( https:\/\/ufqi.com\/news\/mod.ulong.html ) | <a href=\"http:\/\/www.muzimed.com\">\u6728\u5b50\u5546\u57ce<\/a>( http:\/\/www.muzimed.com ) \u7b49\u3002<\/p>\n<p>&nbsp;<\/p>\n<hr \/>\n<p><img src=\"https:\/\/ufqi.com\/blog\/wp-content\/uploads\/2016\/09\/gwa2-logo-201606.v2.png\" \/><\/p>\n<p>-GWA2 \u662f\u201d\u901a\u7528\u7f51\u7edc\u5e94\u7528\u67b6\u6784( General Web Application Architeture )\u201d\uff0c\u57fa\u4e8e -GWA2 \u53ef\u4ee5\u8f7b\u4fbf\u6784\u5efa\u5404\u79cd\u7f51\u7edc\u5e94\u7528\u7a0b\u5e8f,<br \/>\u5305\u62ec\u590d\u6742\u7684\u5728\u7ebf\u8d2d\u7269\u5546\u57ce\u3001\u5728\u7ebf\u533b\u7597\u3001\u5728\u7ebf\u6559\u80b2\u3001 \u65c5\u6e38\u4ea4\u6613\u5e73\u53f0\u3001\u793e\u7fa4\u6216\u8005\u793e\u4ea4\u7f51\u7ad9\u548c\u65b0\u95fb\u8d44\u8baf\u7f51\u7ad9\u7b49\uff0c<br \/>\u4e5f\u5305\u62ec\u5404\u79cd\u4f01\u4e8b\u4e1a\u5355\u4f4d\u7f51\u4e0a\u95e8\u6237\uff0c\u5728\u7ebf\u4ea4\u4e92\u53ca\u670d\u52a1\u4f5c\u4e1a\u7cfb\u7edf\u7b49.<br \/>\u8fd8\u53ef\u4ee5\u5305\u62ec\u4e3aNativeApp\u505a\u670d\u52a1\u5668\u7aef\u652f\u6301, \u751a\u81f3\u662fWebApp\u7684\u5168\u90e8.<br \/>-GWA2 \u662f\u4e3a\u6570\u4e0d\u591a\u7684\u652f\u6301\u8de8\u5f00\u53d1\u8bed\u8a00\u7684\u5e94\u7528\u6846\u67b6\uff0c\u76ee\u524d\u652f\u6301 -Java, -PHP, -Perl, -Aspx and -Python .<\/p>\n<p>-GWA2 is a \u201cGeneral Web Application Architecture\u201d and based on -GWA2 developers can easily build a variety of network applications,<br \/>including complex online shopping malls, online medical services, online teaching, travel trading platforms, community or social networking sites and news information sites, etc.<br \/>Also the applications include various online portals of enterprises and institutions, online interaction and service operations systems.<br \/>Moreover it contains server-side support for NativeApp, or even all of the WebApp.<br \/>-GWA2 is one of the web frameworks which provide cross-language support for -Java, -PHP, -Perl, -Aspx and -Python at present.<\/p>\n<p><strong>-GWA2 is E.A.S.Y\u00a0<\/strong><br \/><b>Easy Along, Swift Yield<br \/><\/b>\u8f7b\u677e\u542f\u52a8, \u5feb\u901f\u4ea7\u51fa.<\/p>\n<p>https:\/\/ufqi.com\/dev\/gwa2\/<\/p>\n<p><b><a class=\"bigfont\" href=\"https:\/\/ufqi.com\/naturedns\/search?q=-R\/E2SS\" target=\"_blank\">-R\/E2SS<br \/><\/a><\/b><br \/>https:\/\/ufqi.com\/blog\/gwa2-updt-template-engine\/<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd1\u671f\uff0c\u5168\u7403\u8303\u56f4\u5185\u7684\u65b0\u51a0\u80ba\u708e\u75ab\u60c5\u6709\u6240\u7f13\u89e3\uff0c\u6297\u51fb\u75ab\u60c5\u6709\u53d1\u5c55\u6210\u4e3a\u5e38\u6001\u5316\u7684\u8d8b\u52bf\uff0c\u590d\u5de5\u590d\u5b66 &hellip; <a href=\"https:\/\/ufqi.com\/blog\/gwa2-updt-template-engine\/\">\u7ee7\u7eed\u9605\u8bfb <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[42,301,7,6,2],"tags":[86,293,300,152,294],"_links":{"self":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2257"}],"collection":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/comments?post=2257"}],"version-history":[{"count":13,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2257\/revisions"}],"predecessor-version":[{"id":2270,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/posts\/2257\/revisions\/2270"}],"wp:attachment":[{"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/media?parent=2257"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/categories?post=2257"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ufqi.com\/blog\/wp-json\/wp\/v2\/tags?post=2257"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}