{"id":7219,"date":"2012-09-24T00:01:52","date_gmt":"2012-09-23T15:01:52","guid":{"rendered":"http:\/\/fukata.org\/?p=7219"},"modified":"2017-08-11T22:58:47","modified_gmt":"2017-08-11T22:58:47","slug":"mojolicious-oreore-fw-logic-model","status":"publish","type":"post","link":"https:\/\/blog.fukata.org\/archives\/7219\/","title":{"rendered":"Mojolicious\u3092\u4f7f\u3063\u3066\u30aa\u30ec\u30aa\u30ecFW\u5316\u3078\u306e\u9053 \u301cModel\u3068Logic\u306e\u5206\u96e2\u301c"},"content":{"rendered":"
\u524d\u56de\u3001Mojolicious\u3092\u4f7f\u3063\u3066\u30aa\u30ec\u30aa\u30ecFW\u5316\u3078\u306e\u9053 \u301cCLI\u6a5f\u80fd\u306e\u8ffd\u52a0\u301c<\/a>\u3067\u3001Mojolicious\u306bCLI\u6a5f\u80fd\u3092\u8ffd\u52a0\u3057\u305f\u3053\u3068\u3092\u66f8\u3044\u305f\u3093\u3067\u3059\u304c\u3001\u4eca\u56de\u306fModel\u3068Logic\u3092\u5206\u96e2\u3057\u307e\u3059\u3002<\/p>\n \u4e2d\u898f\u6a21\u7a0b\u5ea6\u306e\u30b5\u30a4\u30c8\u306b\u306a\u3063\u3066\u304f\u308b\u3068\u305d\u308c\u306a\u308a\u306b\u51e6\u7406\u3092\u5171\u901a\u5316\u3055\u305b\u306a\u3044\u3068\u81ea\u5206\u306e\u982d\u3067\u306f\u3069\u3053\u306b\u4f55\u304c\u3042\u308b\u304b\u5206\u304b\u3089\u306a\u304f\u306a\u308b\u306e\u3067\u3001\u3053\u308c\u3089\u306f\u5fc5\u9808\u3067\u3059\u3002<\/p>\n \u73fe\u5728\u4f5c\u6210\u4e2d\u306e\u30b5\u30fc\u30d3\u30b9\u3067Mojolicious\u3092\u521d\u3081\u3066\u4f7f\u3063\u3066\u304a\u308a\u3001\u4eca\u56de\u4f5c\u6210\u3057\u305f\u69cb\u9020\u304c\u3046\u307e\u304f\u6a5f\u80fd\u3057\u306a\u3044\u53ef\u80fd\u6027\u3082\u3042\u308a\u307e\u3059\u3002\u3068\u308a\u3042\u3048\u305a\u3001\u7b2c1\u5f3e\u3068\u3057\u3066\u5b9f\u88c5\u3057\u3066\u307f\u307e\u3057\u305f\u3002\u307e\u305f\u3001\u4eca\u56deModel\u3068Logic\u3092\u5206\u96e2\u3059\u308b\u306e\u306b\u3042\u305f\u3063\u3066\u3001Mojolicious\u30d7\u30e9\u30b0\u30a4\u30f3\u3082\u4e00\u7dd2\u306b\u4f5c\u3063\u3066\u307f\u307e\u3057\u305f\u3002<\/p>\n <\/p>\n \u76ee\u6b21<\/p> lib\u4ee5\u4e0b\u306e\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020\u306f\u4e0b\u8a18\u306e\u3088\u3046\u306b\u306a\u3063\u3066\u3044\u307e\u3059\u3002Cli\u3068Web\u3067Model, Logic\u3092\u5171\u901a\u5316\u3057\u305f\u304b\u3063\u305f\u306e\u3067\u3001\u540c\u3058\u968e\u5c64\u306b\u6301\u3063\u3066\u304d\u3066\u3044\u307e\u3059\u3002\u307e\u305f\u3001\u5206\u96e2\u3059\u308b\u306e\u306bMojolicious\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3057\u3066\u5b9f\u88c5\u3057\u305f\u306e\u3067\u3001MyApp::Mojolicious::Plugin\u306b\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3057\u3066\u7f6e\u3044\u3066\u3044\u307e\u3059\u3002\u5168\u7136\u5927\u3057\u305f\u30d7\u30e9\u30b0\u30a4\u30f3\u3067\u306f\u306a\u3044\u306e\u3068\u3001\u307b\u3068\u3093\u3069\u91cd\u8907\u3057\u3066\u3044\u308b\u306e\u30671\u3064\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3068\u3057\u3066\u5b9f\u88c5\u3067\u304d\u308b\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n Logic\u306e\u65b9\u306fModel\u306e\u90e8\u5206\u304cLogic\u306b\u5909\u308f\u3063\u305f\u3060\u3051\u3067\u3059\u3002\u4eca\u56de\u30a2\u30d7\u30ea\u3092\u5b9f\u969b\u306b\u4f5c\u3063\u3066\u307f\u3066\u5171\u901a\u5316\u3057\u3066\u554f\u984c\u306a\u3055\u3052\u3060\u3063\u305f\u3089Model\u3068Logic\u7528\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u30921\u3064\u306b\u307e\u3068\u3081\u305f\u65b9\u304c\u826f\u3044\u304b\u3082\u3057\u308c\u307e\u305b\u3093\u3002<\/p>\n\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u69cb\u9020<\/span><\/h2>\n
\r\nlib\/\r\n\u251c\u2500\u2500 MyApp\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Cli\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 Example.pm\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Cli.pm\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Logic\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 Example.pm\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Logic.pm\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Model\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 Example.pm\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Model.pm\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Mojolicious\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 Plugin\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u251c\u2500\u2500 Logic.pm\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 Model.pm\r\n\u2502\u00a0\u00a0 \u251c\u2500\u2500 Web\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 Controller\r\n\u2502\u00a0\u00a0 \u2502\u00a0\u00a0 \u2514\u2500\u2500 Root.pm\r\n\u2502\u00a0\u00a0 \u2514\u2500\u2500 Web.pm\r\n\u2514\u2500\u2500 MyApp.pm\r\n<\/pre>\n
MyApp::Mojolicious::Plugin::Model<\/span><\/h2>\n