{"id":5373,"date":"2020-08-03T04:20:48","date_gmt":"2020-08-03T04:20:48","guid":{"rendered":"https:\/\/www.codebee.co.th\/labs\/?p=5373"},"modified":"2020-08-03T04:20:52","modified_gmt":"2020-08-03T04:20:52","slug":"codeigniter-%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%83%e0%b8%8a%e0%b9%89-route","status":"publish","type":"post","link":"https:\/\/www.codebee.co.th\/labs\/codeigniter-%e0%b8%a7%e0%b8%b4%e0%b8%98%e0%b8%b5%e0%b9%83%e0%b8%8a%e0%b9%89-route\/","title":{"rendered":"Codeigniter \u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 Route \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e2a\u0e49\u0e19\u0e17\u0e32\u0e07 \u0e41\u0e25\u0e30\u0e17\u0e33 URL \u0e43\u0e2b\u0e49\u0e2a\u0e27\u0e22\u0e07\u0e32\u0e21"},"content":{"rendered":"\n<figure class=\"wp-block-video\"><\/figure>\n\n\n\n<p><strong>Route \u0e43\u0e19 Codeigniter Framework<\/strong> ( \u0e23\u0e27\u0e21\u0e16\u0e36\u0e07\u0e40\u0e1f\u0e23\u0e21\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e04\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e14\u0e49\u0e27\u0e22 ) \u0e04\u0e37\u0e2d \u0e15\u0e31\u0e27\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07 URL \u0e2b\u0e23\u0e37\u0e2d \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e2a\u0e49\u0e19\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e0a\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e0a\u0e48\u0e27\u0e22\u0e17\u0e33\u0e43\u0e2b\u0e49 URL \u0e2a\u0e31\u0e49\u0e19\u0e25\u0e07 \u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07 URL \u0e43\u0e2b\u0e49\u0e2a\u0e27\u0e22\u0e07\u0e32\u0e21\u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22 \u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07 URL \u0e43\u0e2b\u0e49\u0e21\u0e35\u0e1c\u0e25\u0e17\u0e32\u0e07 SEO \u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e19<\/p>\n\n\n\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e0a\u0e48\u0e19 URL \u0e17\u0e35\u0e48\u0e21\u0e35\u0e01\u0e32\u0e23\u0e1c\u0e48\u0e32\u0e19\u0e04\u0e48\u0e32\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23 Query String \u0e2b\u0e23\u0e37\u0e2d Parameter \u0e2b\u0e25\u0e32\u0e22\u0e15\u0e31\u0e27\u0e41\u0e1b\u0e23<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>localhost:8080\/member\/profile\/abcd<\/code><\/pre>\n\n\n\n<p>\u0e08\u0e32\u0e01 URL \u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e43\u0e0a\u0e49\u0e04\u0e27\u0e32\u0e21\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e02\u0e2d\u0e07 Route \u0e1b\u0e23\u0e31\u0e1a URL \u0e43\u0e2b\u0e49\u0e2a\u0e31\u0e49\u0e19\u0e25\u0e07\u0e41\u0e25\u0e30\u0e2a\u0e27\u0e22\u0e07\u0e32\u0e21\u0e44\u0e14\u0e49\u0e41\u0e1a\u0e1a\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>localhost:8080\/abcd<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">\u0e27\u0e34\u0e18\u0e35\u0e43\u0e0a\u0e49 Route \u0e17\u0e33 URL \u0e43\u0e2b\u0e49\u0e2a\u0e27\u0e22\u0e07\u0e32\u0e21<\/h2>\n\n\n\n<p>\u0e43\u0e19\u0e01\u0e32\u0e23\u0e01\u0e33\u0e2b\u0e19\u0e14 Route \u0e19\u0e31\u0e49\u0e19 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e44\u0e14\u0e49\u0e17\u0e35\u0e48\u0e44\u0e1f\u0e25\u0e4c <strong>application\/config\/routes.php<\/strong><\/p>\n\n\n\n<p>\u0e42\u0e14\u0e22\u0e04\u0e48\u0e32\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e43\u0e19\u0e44\u0e1f\u0e25\u0e4c routes.php \u0e08\u0e30\u0e21\u0e35\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$route['default_controller'] = ''; \/\/ \u0e01\u0e33\u0e2b\u0e19\u0e14 Controller \u0e40\u0e23\u0e34\u0e48\u0e21\u0e15\u0e49\u0e19 \u0e41\u0e17\u0e19 index.php\n$route['404_override'] = ''; \/\/ \u0e01\u0e33\u0e2b\u0e19\u0e14 Controller \u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e2b\u0e19\u0e49\u0e32 404 Error\n$route['translate_uri_dashes'] = FALSE; \/\/ \u0e40\u0e1b\u0e34\u0e14\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49 - \u0e02\u0e35\u0e14\u0e01\u0e25\u0e32\u0e07\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a Controller<\/pre>\n\n\n\n<p>\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e32\u0e2a\u0e23\u0e49\u0e32\u0e07 Controller \u0e41\u0e25\u0e30\u0e21\u0e35 Method \u0e15\u0e48\u0e32\u0e07 \u0e46 \u0e43\u0e19 Controller \u0e19\u0e31\u0e49\u0e19 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e1b\u0e25\u0e35\u0e48\u0e22\u0e19\u0e40\u0e2a\u0e49\u0e19\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e1c\u0e48\u0e32\u0e19 URL \u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19 routes.php \u0e22\u0e01\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07 Controller Member \u0e15\u0e32\u0e21\u0e14\u0e49\u0e32\u0e19\u0e25\u0e48\u0e32\u0e07<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>class Member extends MX_Controller {\n\tpublic function profile($member_name)\n\t{\n\t   echo $member_name;\n\t}\n}<\/code><\/pre>\n\n\n\n<p>\u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e40\u0e21\u0e18\u0e2d\u0e14 Profile \u0e44\u0e14\u0e49\u0e14\u0e49\u0e27\u0e22 URL <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>localhost\/member\/profile\/messi<\/code><\/pre>\n\n\n\n<p>\u0e16\u0e49\u0e32\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e40\u0e02\u0e49\u0e32\u0e16\u0e36\u0e07\u0e2b\u0e19\u0e49\u0e32\u0e19\u0e35\u0e49\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e21\u0e35\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e0a\u0e37\u0e48\u0e2d\u0e42\u0e14\u0e40\u0e21\u0e19 \u0e41\u0e25\u0e30\u0e15\u0e32\u0e21\u0e14\u0e49\u0e27\u0e22\u0e0a\u0e37\u0e48\u0e2d\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e40\u0e25\u0e22 \u0e40\u0e23\u0e32\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e35\u0e22\u0e19\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07\u0e43\u0e19 routes.php \u0e44\u0e14\u0e49\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$route['(:any)'] = 'member\/profile\/$1';<\/pre>\n\n\n\n<p>\u0e2d\u0e18\u0e34\u0e1a\u0e32\u0e22\u200b\u0e42\u0e04\u0e4a\u0e14\u0e14\u0e49\u0e32\u0e19\u0e1a\u0e19\u0e19\u0e30\u0e04\u0e23\u0e31\u0e1a \u0e1d\u0e31\u0e48\u0e07\u0e02\u0e27\u0e32 \u0e04\u0e37\u0e2d \u0e0a\u0e37\u0e48\u0e2d controller,  method \u0e41\u0e25\u0e30 parameter \u0e15\u0e49\u0e19\u0e41\u0e1a\u0e1a\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32 \u0e2a\u0e48\u0e27\u0e19\u0e1d\u0e31\u0e48\u0e07\u0e0b\u0e49\u0e32\u0e22 \u0e04\u0e37\u0e2d \u0e40\u0e2a\u0e49\u0e19\u0e17\u0e32\u0e07\u0e43\u0e2b\u0e21\u0e48\u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49\u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e2b\u0e21\u0e37\u0e2d\u0e19\u0e01\u0e31\u0e19 <\/p>\n\n\n\n<p><strong>(:any)<\/strong> \u0e2b\u0e21\u0e32\u0e22\u0e16\u0e36\u0e07 \u0e1e\u0e32\u0e23\u0e32\u0e21\u0e34\u0e40\u0e15\u0e2d\u0e23\u0e4c \u0e17\u0e35\u0e48\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e2b\u0e23\u0e37\u0e2d\u0e15\u0e31\u0e27\u0e2d\u0e31\u0e01\u0e29\u0e23\u0e01\u0e47\u0e44\u0e14\u0e49 \u0e42\u0e14\u0e22\u0e41\u0e17\u0e19\u0e1d\u0e31\u0e48\u0e07\u0e02\u0e27\u0e32\u0e14\u0e49\u0e27\u0e22 $1 \u0e41\u0e25\u0e30\u0e16\u0e49\u0e32\u0e21\u0e35\u0e1e\u0e32\u0e23\u0e32\u0e21\u0e34\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e2b\u0e25\u0e32\u0e22\u0e15\u0e31\u0e27\u0e01\u0e47\u0e08\u0e30\u0e41\u0e17\u0e19\u0e14\u0e49\u0e27\u0e22 $2 $3 &#8230;  \u0e44\u0e1b\u0e40\u0e23\u0e37\u0e48\u0e2d\u0e22 \u0e46 <\/p>\n\n\n\n<p><strong>(:num)<\/strong> \u0e2b\u0e21\u0e32\u0e22\u0e16\u0e36\u0e07 \u0e23\u0e31\u0e1a\u0e1e\u0e32\u0e23\u0e32\u0e21\u0e34\u0e40\u0e15\u0e2d\u0e23\u0e4c\u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>localhost\/member\/profile\/100<\/code><\/pre>\n\n\n\n<p>\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02 100 \u0e04\u0e37\u0e2d member id \u0e02\u0e2d\u0e07\u0e1c\u0e39\u0e49\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e0b\u0e36\u0e48\u0e07\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e31\u0e27\u0e40\u0e25\u0e02\u0e40\u0e17\u0e48\u0e32\u0e19\u0e31\u0e49\u0e19 \u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e02\u0e35\u0e22\u0e19 route \u0e44\u0e14\u0e49 \u0e14\u0e31\u0e07\u0e19\u0e35\u0e49<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">$route['(:num)'] = 'member\/profile\/$1';<\/pre>\n\n\n\n<p>\u0e41\u0e25\u0e30\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e23\u0e35\u0e22\u0e01 url \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e01\u0e33\u0e2b\u0e19\u0e14 route \u0e44\u0e27\u0e49\u0e40\u0e23\u0e35\u0e22\u0e1a\u0e23\u0e49\u0e2d\u0e22\u0e41\u0e25\u0e49\u0e27 \u0e40\u0e23\u0e32\u0e08\u0e30\u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e40\u0e23\u0e35\u0e22\u0e01\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19\u0e44\u0e14\u0e49\u0e14\u0e31\u0e07\u0e19\u0e35\u0e49\u0e04\u0e23\u0e31\u0e1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><?php echo base_url($member_name); ?><\/pre>\n\n\n\n<p>\u0e15\u0e31\u0e27\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e40\u0e21\u0e37\u0e48\u0e2d\u0e40\u0e02\u0e35\u0e22\u0e19\u0e43\u0e19 html code<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><a href=\"<?php echo base_url($member_name); ?>\">View Profile<\/a><\/pre>\n\n\n\n<p>\u0e08\u0e30\u0e2a\u0e31\u0e07\u0e40\u0e01\u0e15\u0e38\u0e27\u0e48\u0e32 \u0e40\u0e23\u0e32\u0e44\u0e21\u0e48\u0e08\u0e33\u0e40\u0e1b\u0e47\u0e19\u0e15\u0e49\u0e2d\u0e07\u0e23\u0e30\u0e1a\u0e38\u0e0a\u0e37\u0e48\u0e2d Controller \u0e2b\u0e23\u0e37\u0e2d Method \u0e43\u0e14 \u0e46 \u0e40\u0e25\u0e22 \u0e40\u0e1e\u0e23\u0e32\u0e30\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e2a\u0e49\u0e19\u0e17\u0e32\u0e07\u0e43\u0e2b\u0e21\u0e48 \u0e44\u0e27\u0e49\u0e41\u0e25\u0e49\u0e27\u0e43\u0e19 Route \u0e19\u0e31\u0e48\u0e19\u0e40\u0e2d\u0e07<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Route \u0e43\u0e19 Codeigniter Framework ( \u0e23\u0e27\u0e21\u0e16\u0e36\u0e07\u0e40\u0e1f\u0e23\u0e21\u0e40\u0e27\u0e34\u0e23\u0e4c\u0e04\u0e2d\u0e37\u0e48\u0e19 \u0e46 \u0e14\u0e49\u0e27\u0e22 ) \u0e04\u0e37\u0e2d \u0e15\u0e31\u0e27\u0e0a\u0e48\u0e27\u0e22\u0e43\u0e19\u0e01\u0e32\u0e23\u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07 URL \u0e2b\u0e23\u0e37\u0e2d \u0e01\u0e33\u0e2b\u0e19\u0e14\u0e40\u0e2a\u0e49\u0e19\u0e17\u0e32\u0e07\u0e01\u0e32\u0e23\u0e40\u0e02\u0e49\u0e32\u0e0a\u0e21\u0e2b\u0e19\u0e49\u0e32\u0e40\u0e27\u0e47\u0e1a\u0e44\u0e0b\u0e15\u0e4c \u0e40\u0e1e\u0e37\u0e48\u0e2d\u0e1b\u0e23\u0e30\u0e42\u0e22\u0e0a\u0e19\u0e4c\u0e0a\u0e48\u0e27\u0e22\u0e17\u0e33\u0e43\u0e2b\u0e49 URL \u0e2a\u0e31\u0e49\u0e19\u0e25\u0e07 \u0e1b\u0e23\u0e31\u0e1a\u0e41\u0e15\u0e48\u0e07 URL \u0e43\u0e2b\u0e49\u0e2a\u0e27\u0e22\u0e07\u0e32\u0e21\u0e40\u0e02\u0e49\u0e32\u0e43\u0e08\u0e44\u0e14\u0e49\u0e07\u0e48\u0e32\u0e22&#8230;<\/p>\n","protected":false},"author":1,"featured_media":5387,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"video","meta":{"footnotes":""},"categories":[168],"tags":[9,2182,2181,7,12,10,11,825],"class_list":["post-5373","post","type-post","status-publish","format-video","has-post-thumbnail","hentry","category--php-codeigniter-framework","tag-codeigniter","tag-route-codeigniter","tag-route--codeigniter-framework","tag--codeigniter","tag--php","tag--php-codeigniter","tag-11","tag-825","post_format-post-format-video"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/5373","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=5373"}],"version-history":[{"count":20,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/5373\/revisions"}],"predecessor-version":[{"id":5394,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/posts\/5373\/revisions\/5394"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media\/5387"}],"wp:attachment":[{"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/media?parent=5373"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/categories?post=5373"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.codebee.co.th\/labs\/wp-json\/wp\/v2\/tags?post=5373"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}