{"id":1128,"date":"2014-10-12T03:39:02","date_gmt":"2014-10-12T03:39:02","guid":{"rendered":"http:\/\/www.webhozz.com\/blog\/?p=1128"},"modified":"2019-06-27T07:48:08","modified_gmt":"2019-06-27T07:48:08","slug":"konsep-mvc-di-codeigniter","status":"publish","type":"post","link":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/","title":{"rendered":"Konsep MVC di Codeigniter"},"content":{"rendered":"<p><a href=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png\"><img fetchpriority=\"high\" decoding=\"async\" class=\"size-full wp-image-1130 aligncenter\" src=\"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png\" alt=\"mvc\" width=\"500\" height=\"400\" srcset=\"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png 500w, https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc-300x240.png 300w\" sizes=\"(max-width: 500px) 100vw, 500px\" \/><\/a><\/p>\n<p>Dalam pembangunan website dengan framework , kita masih perlu menuliskan kode atau perintah &#8211; perintah PHP. Salah satu framework yang akan dibahas pada artikel ini adalah PHP Framework Codeigniter . Pada codeigniter menggunakan konsep metode pengembangan berbasis MVC.<!--more--><\/p>\n<p>MVC (Model, View, Controller) bekerja sebagai pemisah bagian dari suatu web aplikasi.<\/p>\n<p>MVC terdiri dari tiga bagian yaitu :<\/p>\n<p>1. Model \u00a0 \u00a0 \u00a0 \u00a0 \u00a0: \u00a0Model mewakili struktur data. berfungsi yang membantu dalam pengelolaan database.<br \/>\n2. View \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0: \u00a0bagian yang mengatur tampilan ke user. Bisa di katakan berupa halaman web.<\/p>\n<p>3. Controller \u00a0: bagian yang menjembatani model dan view. Controller berisi script-script php yang berfungsi untuk memproses suatu data dan mengirimkannya ke halaman web.<\/p>\n<p>Jadi dengan menggunakan metode MVC , memisahkan bagian database, logika dan tampilan . Namun ketiganya tetap sinkron sehingga pembuatan aplikasi menjadi lebih terstruktur dan sederhana. Model digunakan dalam menuliskan script database, Controller untuk mengembangkan logika pemrogramannya, sedangkan View berfungsi dalam menampilkan layout dari aplikasi yang kita buat.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Dalam pembangunan website dengan framework , kita masih perlu menuliskan kode atau perintah &#8211; perintah PHP. Salah satu framework yang akan dibahas pada artikel ini<\/p>\n","protected":false},"author":9,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[300,299,65,235,234,301,126,204],"class_list":["post-1128","post","type-post","status-publish","format-standard","hentry","category-belajar-web-programming","tag-belajar-php-oop","tag-framework-codeigniter","tag-framework-php","tag-model-view-controller","tag-mvc","tag-object-orientied-progamming","tag-php","tag-php-framework"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Konsep MVC di Codeigniter - WebHozz Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Konsep MVC di Codeigniter - WebHozz Blog\" \/>\n<meta property=\"og:description\" content=\"Dalam pembangunan website dengan framework , kita masih perlu menuliskan kode atau perintah &#8211; perintah PHP. Salah satu framework yang akan dibahas pada artikel ini\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/\" \/>\n<meta property=\"og:site_name\" content=\"WebHozz Blog\" \/>\n<meta property=\"article:published_time\" content=\"2014-10-12T03:39:02+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-06-27T07:48:08+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png\" \/>\n\t<meta property=\"og:image:width\" content=\"500\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/ad1c5822a60b5b228c5ceda20e439fea\"},\"headline\":\"Konsep MVC di Codeigniter\",\"datePublished\":\"2014-10-12T03:39:02+00:00\",\"dateModified\":\"2019-06-27T07:48:08+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/\"},\"wordCount\":149,\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/mvc.png\",\"keywords\":[\"belajar php oop\",\"framework codeigniter\",\"framework php\",\"model view controller\",\"mvc\",\"object orientied progamming\",\"php\",\"php framework\"],\"articleSection\":[\"Belajar Web Programming\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/\",\"name\":\"Konsep MVC di Codeigniter - WebHozz Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/mvc.png\",\"datePublished\":\"2014-10-12T03:39:02+00:00\",\"dateModified\":\"2019-06-27T07:48:08+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/#primaryimage\",\"url\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/mvc.png\",\"contentUrl\":\"http:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2014\\\/10\\\/mvc.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/konsep-mvc-di-codeigniter\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Konsep MVC di Codeigniter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"name\":\"WebHozz Blog\",\"description\":\"Kursus Web &amp; Android di Jakarta Bandung\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#organization\",\"name\":\"WebHozz\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"contentUrl\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/wp-content\\\/uploads\\\/2018\\\/04\\\/logo-persegi.jpg\",\"width\":442,\"height\":442,\"caption\":\"WebHozz\"},\"image\":{\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/#\\\/schema\\\/person\\\/ad1c5822a60b5b228c5ceda20e439fea\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/www.webhozz.com\\\/blog\\\/author\\\/putralucio\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Konsep MVC di Codeigniter - WebHozz Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/","og_locale":"en_US","og_type":"article","og_title":"Konsep MVC di Codeigniter - WebHozz Blog","og_description":"Dalam pembangunan website dengan framework , kita masih perlu menuliskan kode atau perintah &#8211; perintah PHP. Salah satu framework yang akan dibahas pada artikel ini","og_url":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/","og_site_name":"WebHozz Blog","article_published_time":"2014-10-12T03:39:02+00:00","article_modified_time":"2019-06-27T07:48:08+00:00","og_image":[{"width":500,"height":400,"url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png","type":"image\/png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/#article","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/"},"author":{"name":"admin","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/ad1c5822a60b5b228c5ceda20e439fea"},"headline":"Konsep MVC di Codeigniter","datePublished":"2014-10-12T03:39:02+00:00","dateModified":"2019-06-27T07:48:08+00:00","mainEntityOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/"},"wordCount":149,"publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/#primaryimage"},"thumbnailUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png","keywords":["belajar php oop","framework codeigniter","framework php","model view controller","mvc","object orientied progamming","php","php framework"],"articleSection":["Belajar Web Programming"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/","url":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/","name":"Konsep MVC di Codeigniter - WebHozz Blog","isPartOf":{"@id":"https:\/\/www.webhozz.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/#primaryimage"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/#primaryimage"},"thumbnailUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png","datePublished":"2014-10-12T03:39:02+00:00","dateModified":"2019-06-27T07:48:08+00:00","breadcrumb":{"@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/#primaryimage","url":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png","contentUrl":"http:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2014\/10\/mvc.png"},{"@type":"BreadcrumbList","@id":"https:\/\/www.webhozz.com\/blog\/konsep-mvc-di-codeigniter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.webhozz.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Konsep MVC di Codeigniter"}]},{"@type":"WebSite","@id":"https:\/\/www.webhozz.com\/blog\/#website","url":"https:\/\/www.webhozz.com\/blog\/","name":"WebHozz Blog","description":"Kursus Web &amp; Android di Jakarta Bandung","publisher":{"@id":"https:\/\/www.webhozz.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.webhozz.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.webhozz.com\/blog\/#organization","name":"WebHozz","url":"https:\/\/www.webhozz.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","contentUrl":"https:\/\/www.webhozz.com\/blog\/wp-content\/uploads\/2018\/04\/logo-persegi.jpg","width":442,"height":442,"caption":"WebHozz"},"image":{"@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.webhozz.com\/blog\/#\/schema\/person\/ad1c5822a60b5b228c5ceda20e439fea","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/bff35e4083f3870e2f911c4437e788147d340f274268d361dd7e1cf20bebb156?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/www.webhozz.com\/blog\/author\/putralucio\/"}]}},"_links":{"self":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/1128","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/comments?post=1128"}],"version-history":[{"count":5,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/1128\/revisions"}],"predecessor-version":[{"id":1134,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/posts\/1128\/revisions\/1134"}],"wp:attachment":[{"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/media?parent=1128"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/categories?post=1128"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.webhozz.com\/blog\/wp-json\/wp\/v2\/tags?post=1128"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}