{"id":2027,"date":"2016-08-21T10:33:51","date_gmt":"2016-08-21T10:33:51","guid":{"rendered":"https:\/\/www.codebee.co.th\/labs\/?p=2027"},"modified":"2016-10-23T11:45:53","modified_gmt":"2016-10-23T11:45:53","slug":"%e0%b8%aa%e0%b8%ad%e0%b8%99-yii-2-%e0%b8%94%e0%b8%b2%e0%b8%a7%e0%b8%99%e0%b9%8c%e0%b9%82%e0%b8%ab%e0%b8%a5%e0%b8%94-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b9%81%e0%b8%a5","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/%e0%b8%aa%e0%b8%ad%e0%b8%99-yii-2-%e0%b8%94%e0%b8%b2%e0%b8%a7%e0%b8%99%e0%b9%8c%e0%b9%82%e0%b8%ab%e0%b8%a5%e0%b8%94-%e0%b8%95%e0%b8%b4%e0%b8%94%e0%b8%95%e0%b8%b1%e0%b9%89%e0%b8%87%e0%b9%81%e0%b8%a5\/","title":{"rendered":"\u0e2a\u0e2d\u0e19 Yii 2 : \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e25\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04"},"content":{"rendered":"<h3>\u0e2a\u0e2d\u0e19 Yii 2 Framework : \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e25\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04<\/h3>\n<p><\/br><br \/>\nYii 2 Framework \u0e22\u0e48\u0e2d\u0e21\u0e32\u0e08\u0e32\u0e01\u0e04\u0e33\u0e27\u0e48\u0e32 &#8220;Yes It Is&#8221; \u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e35\u0e01\u0e2b\u0e19\u0e36\u0e48\u0e07 PHP MVC Framework \u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e19\u0e34\u0e22\u0e21<br \/>\n\u0e44\u0e21\u0e48\u0e41\u0e1e\u0e49 Codeiginter Framework \u0e41\u0e25\u0e30 Laravel Framework \u0e01\u0e32\u0e23\u0e28\u0e36\u0e01\u0e29\u0e32\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 MVC Framework \u0e2a\u0e21\u0e31\u0e22\u0e43\u0e2b\u0e21\u0e48<br \/>\n<!--more--><\/p>\n<p>\u0e19\u0e31\u0e49\u0e19 \u0e42\u0e14\u0e22\u0e2b\u0e25\u0e31\u0e01 \u0e46 \u0e41\u0e25\u0e49\u0e27\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e41\u0e15\u0e01\u0e15\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19\u0e21\u0e32\u0e01\u0e19\u0e31\u0e01 \u0e04\u0e27\u0e32\u0e21\u0e41\u0e15\u0e01\u0e15\u0e48\u0e32\u0e07\u0e2b\u0e25\u0e31\u0e01 \u0e46 \u0e02\u0e2d\u0e07\u0e40\u0e1f\u0e23\u0e21\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e04\u0e2a\u0e48\u0e27\u0e19\u0e43\u0e2b\u0e0d\u0e48\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a<br \/>\n\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e41\u0e25\u0e30\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19 \u0e17\u0e35\u0e48\u0e43\u0e2b\u0e49\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e33\u0e04\u0e31\u0e0d\u0e41\u0e15\u0e48\u0e25\u0e30\u0e2a\u0e48\u0e27\u0e19\u0e17\u0e35\u0e48\u0e41\u0e15\u0e01\u0e15\u0e48\u0e32\u0e07\u0e01\u0e31\u0e19 CI \u0e40\u0e19\u0e49\u0e19\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e07\u0e48\u0e32\u0e22 \u0e22\u0e31\u0e07\u0e04\u0e07\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e17\u0e35\u0e48\u0e43\u0e01\u0e25\u0e49<br \/>\n\u0e40\u0e04\u0e35\u0e22\u0e07\u0e01\u0e31\u0e1a\u0e20\u0e32\u0e29\u0e32 PHP \u0e44\u0e27\u0e49\u0e2d\u0e22\u0e39\u0e48 \u0e2a\u0e48\u0e27\u0e19 Laravel \u0e08\u0e38\u0e14\u0e40\u0e14\u0e48\u0e19\u0e17\u0e35\u0e48\u0e04\u0e27\u0e32\u0e21\u0e1b\u0e25\u0e2d\u0e14\u0e20\u0e31\u0e22\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e43\u0e0a\u0e49 syntax \u0e02\u0e2d\u0e07 framework \u0e40\u0e02\u0e35\u0e22\u0e19\u0e42\u0e04\u0e4a\u0e14\u0e2a\u0e31\u0e49\u0e19<br \/>\nRouter \u0e2a\u0e30\u0e2d\u0e32\u0e14\u0e15\u0e32 \u0e01\u0e32\u0e23\u0e28\u0e36\u0e01\u0e29\u0e32\u0e44\u0e27\u0e49\u0e2b\u0e25\u0e32\u0e22 \u0e46 \u0e40\u0e1f\u0e23\u0e21\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e04\u0e01\u0e47\u0e17\u0e33\u0e43\u0e2b\u0e49\u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e25\u0e37\u0e2d\u0e01\u0e43\u0e0a\u0e49\u0e43\u0e2b\u0e49\u0e40\u0e2b\u0e21\u0e32\u0e30\u0e2a\u0e21\u0e01\u0e31\u0e1a\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e41\u0e25\u0e30\u0e02\u0e19\u0e32\u0e14\u0e02\u0e2d\u0e07\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04\u0e44\u0e14\u0e49<br \/>\n<\/br><\/p>\n<h4>\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17 composer \u0e01\u0e48\u0e2d\u0e19\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07<\/h4>\n<p>\u0e40\u0e1b\u0e34\u0e14\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e23\u0e31\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 command line \u0e41\u0e25\u0e30\u0e1e\u0e34\u0e21\u0e1e\u0e4c\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17 composer \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"lang:default decode:true \" >composer self-update<\/pre>\n<p><\/br><\/p>\n<h4>\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e25\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04\u0e1c\u0e48\u0e32\u0e19 Composer<\/h4>\n<p>\u0e44\u0e1b\u0e17\u0e35\u0e48\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e49\u0e2d\u0e08\u0e33\u0e25\u0e2d\u0e07 Web Server \u0e04\u0e23\u0e31\u0e1a \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19 xampp \u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e49\u0e2d htdocs \u0e40\u0e1b\u0e34\u0e14\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a<br \/>\n\u0e23\u0e31\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 Command Line \u0e17\u0e35\u0e48\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e49\u0e2d\u0e19\u0e35\u0e49\u0e2b\u0e23\u0e37\u0e2d\u0e08\u0e30\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07 cd \u0e0a\u0e35\u0e49\u0e21\u0e32\u0e01\u0e47\u0e44\u0e14\u0e49\u0e08\u0e32\u0e01\u0e19\u0e31\u0e49\u0e19\u0e23\u0e31\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e15\u0e31\u0e27 assets \u0e41\u0e25\u0e30<br \/>\n\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04 basic \u0e02\u0e2d\u0e07 Yii \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n<pre class=\"lang:default decode:true \" >\r\ncomposer global require \"fxp\/composer-asset-plugin:^1.2.0\"\r\n<\/pre>\n<p>\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04 Yii2 \u0e41\u0e1a\u0e1a basic project<\/p>\n<pre class=\"lang:default decode:true \" >\r\ncomposer create-project --prefer-dist yiisoft\/yii2-app-basic yii-application\r\n<\/pre>\n<p>\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04 Yii2 \u0e41\u0e1a\u0e1a advanced project<\/p>\n<pre class=\"lang:default decode:true \" >\r\ncomposer create-project --prefer-dist yiisoft\/yii2-app-advanced yii-application\r\n<\/pre>\n<p>\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e32\u0e15\u0e2d\u0e19\u0e17\u0e35\u0e48\u0e01\u0e33\u0e25\u0e31\u0e07\u0e42\u0e2b\u0e25\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04\u0e02\u0e2d\u0e07 Yii framework<br \/>\n<\/br><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.codebee.co.th\/labs\/wp-content\/uploads\/2016\/08\/\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07-yii-framework.png\" alt=\"\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 yii2 framework\" \/><br \/>\n<\/br><br \/>\n\u0e23\u0e2d\u0e08\u0e19\u0e01\u0e27\u0e48\u0e32\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21\u0e08\u0e30\u0e42\u0e2b\u0e25\u0e14\u0e02\u0e49\u0e2d\u0e21\u0e39\u0e25\u0e40\u0e2a\u0e23\u0e47\u0e08 \u0e40\u0e23\u0e32\u0e08\u0e30\u0e44\u0e14\u0e49\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e02\u0e2d\u0e07 Yii2 \u0e21\u0e32 \u0e43\u0e2b\u0e49\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e1c\u0e48\u0e32\u0e19<br \/>\n\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 Web Browser \u0e42\u0e14\u0e22\u0e1e\u0e34\u0e21\u0e1e\u0e4c url \u0e44\u0e1b\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49 <strong>http:\/\/localhost\/yii-application\/web\/<\/strong> \u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e40\u0e23\u0e32\u0e08\u0e30\u0e40\u0e2b\u0e47\u0e19\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e02\u0e2d\u0e07 Yii Framework \u0e14\u0e31\u0e07\u0e23\u0e39\u0e1b<\/p>\n<p><\/br><\/p>\n<h4>\u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e42\u0e14\u0e22\u0e15\u0e23\u0e07\u0e08\u0e32\u0e01\u0e44\u0e1f\u0e25\u0e4c Archive .zip \u0e44\u0e1f\u0e25\u0e4c<\/h4>\n<p>1. \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 zip \u0e44\u0e1f\u0e25\u0e4c\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c\u0e2b\u0e25\u0e31\u0e01\u0e02\u0e2d\u0e07 Yii <a href=\"http:\/\/www.yiiframework.com\/download\/\">http:\/\/www.yiiframework.com\/download\/<\/a><br \/>\n2. \u0e41\u0e15\u0e01\u0e44\u0e1f\u0e25\u0e4c\u0e41\u0e25\u0e30\u0e19\u0e33\u0e44\u0e1b\u0e27\u0e32\u0e07\u0e44\u0e27\u0e49\u0e43\u0e19\u0e42\u0e1f\u0e25\u0e40\u0e14\u0e49\u0e2d htdocs<br \/>\n3. \u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e1e\u0e34\u0e21\u0e1e\u0e4c url <strong>http:\/\/localhost\/yii-application\/web\/<\/strong> \u0e17\u0e35\u0e48\u0e42\u0e1b\u0e23\u0e41\u0e01\u0e23\u0e21 Web Browser<br \/>\n4. \u0e16\u0e49\u0e32\u0e44\u0e21\u0e48\u0e21\u0e35\u0e2d\u0e30\u0e44\u0e23\u0e1c\u0e34\u0e14\u0e1e\u0e25\u0e32\u0e14\u0e40\u0e23\u0e32\u0e01\u0e47\u0e08\u0e30\u0e40\u0e08\u0e2d\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e40\u0e0a\u0e48\u0e19\u0e40\u0e14\u0e35\u0e22\u0e27\u0e01\u0e31\u0e19\u0e01\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e1a\u0e1a composer<br \/>\n5. \u0e01\u0e32\u0e23\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e1a\u0e1a\u0e42\u0e2b\u0e25\u0e14\u0e44\u0e1f\u0e25\u0e4c\u0e21\u0e32\u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07 \u0e17\u0e48\u0e32\u0e19\u0e2d\u0e32\u0e08\u0e08\u0e30\u0e15\u0e49\u0e2d\u0e07\u0e17\u0e33\u0e01\u0e32\u0e23\u0e2d\u0e31\u0e1e\u0e40\u0e14\u0e17\u0e43\u0e2b\u0e49\u0e40\u0e1b\u0e47\u0e19 version \u0e25\u0e48\u0e32\u0e2a\u0e38\u0e14\u0e01\u0e48\u0e2d\u0e19<br \/>\n<\/br><br \/>\n<img decoding=\"async\" src=\"https:\/\/www.codebee.co.th\/labs\/wp-content\/uploads\/2016\/08\/yii-framework-\u0e2b\u0e19\u0e49\u0e32\u0e15\u0e49\u0e19\u0e41\u0e1a\u0e1a.png\" alt=\"yii framework \u0e2b\u0e19\u0e49\u0e32\u0e15\u0e32\u0e2b\u0e25\u0e31\u0e01\" \/><br \/>\n<\/br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0e2a\u0e2d\u0e19 Yii 2 Framework : \u0e14\u0e32\u0e27\u0e19\u0e4c\u0e42\u0e2b\u0e25\u0e14 \u0e15\u0e34\u0e14\u0e15\u0e31\u0e49\u0e07\u0e41\u0e25\u0e30\u0e2a\u0e23\u0e49\u0e32\u0e07\u0e42\u0e1b\u0e23\u0e40\u0e08\u0e04 Yii 2 Framework \u0e22\u0e48\u0e2d\u0e21\u0e32\u0e08\u0e32\u0e01\u0e04\u0e33\u0e27\u0e48\u0e32 &#8220;Yes It Is&#8221; \u0e40\u0e1b\u0e47\u0e19\u0e2d\u0e35\u0e01\u0e2b\u0e19\u0e36\u0e48\u0e07 PHP MVC Framework \u0e17\u0e35\u0e48\u0e44\u0e14\u0e49\u0e23\u0e31\u0e1a\u0e04\u0e27\u0e32\u0e21\u0e19\u0e34\u0e22\u0e21 \u0e44\u0e21\u0e48\u0e41\u0e1e\u0e49&#8230;<\/p>\n","protected":false},"author":1,"featured_media":2039,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"video","meta":{"footnotes":""},"categories":[654],"tags":[656,660,658,659,933,657,371,614,549,501,12,655,661,11,935],"class_list":{"0":"post-2027","1":"post","2":"type-post","3":"status-publish","4":"format-video","5":"has-post-thumbnail","6":"hentry","7":"category--yii-framework","8":"tag-yii-","10":"tag--yii","12":"tag-933","13":"tag--yii-2","14":"tag-371","15":"tag-614","16":"tag-549","17":"tag-501","18":"tag--php","20":"tag--yii-framework","21":"tag-11","22":"tag-935","23":"post_format-post-format-video"},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/2027","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/comments?post=2027"}],"version-history":[{"count":10,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/2027\/revisions"}],"predecessor-version":[{"id":2040,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/2027\/revisions\/2040"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media\/2039"}],"wp:attachment":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media?parent=2027"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=2027"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=2027"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}