{"id":871,"date":"2024-04-15T13:14:35","date_gmt":"2024-04-15T04:14:35","guid":{"rendered":"http:\/\/inwelly.com\/?p=871"},"modified":"2024-04-23T04:32:49","modified_gmt":"2024-04-22T19:32:49","slug":"php-ci-%ec%9d%b8%eb%8d%b1%ec%8a%a4-%ed%8c%8c%ec%9d%bc-%ec%9c%84%ec%b9%98-%ec%84%a4%ec%a0%95%ec%9d%80","status":"publish","type":"post","link":"https:\/\/inwelly.com\/?p=871","title":{"rendered":"PHP CI &#8211; \uc778\ub371\uc2a4 \ud30c\uc77c \uc704\uce58 \uc124\uc815\uc740"},"content":{"rendered":"\n<pre class=\"wp-block-code\"><code> \/application\/config\/routes.php\n---------------------------------------------------------\n$route&#91;'default_controller'] = 'welcome';\n\n\n\/application\/controllers\/Welcome.php\n---------------------------------------------------------\nclass Welcome extends CI_Controller {\n \n\t\/**\n\t * Index Page for this controller.\n\t *\n\t * Maps to the following URL\n\t * \t\thttp:\/\/example.com\/index.php\/welcome\n\t *\t- or -\n\t * \t\thttp:\/\/example.com\/index.php\/welcome\/index\n\t *\t- or -\n\t * Since this controller is set as the default controller in\n\t * config\/routes.php, it's displayed at http:\/\/example.com\/\n\t *\n\t * So any other public methods not prefixed with an underscore will\n\t * map to \/index.php\/welcome\/&lt;method_name>\n\t * @see https:\/\/codeigniter.com\/user_guide\/general\/urls.html\n\t *\/\n\tpublic function index()\n\t{\n\t\t$this->load->view('welcome_message');\n\t}\n}\n\n\n\n\/application\/views\/welcome_message.php\n--------------------------------------------------------------\n\ub0b4\uc6a9 \uc2e4\ud589\ub428<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":1251,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-871","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-php"],"_links":{"self":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/871","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=871"}],"version-history":[{"count":1,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/871\/revisions"}],"predecessor-version":[{"id":872,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/posts\/871\/revisions\/872"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=\/wp\/v2\/media\/1251"}],"wp:attachment":[{"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=871"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=871"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/inwelly.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=871"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}