{"id":289,"date":"2013-05-27T12:13:11","date_gmt":"2013-05-27T12:13:11","guid":{"rendered":"http:\/\/www.siriinnovations.com\/blog\/?p=289"},"modified":"2013-07-21T14:32:37","modified_gmt":"2013-07-21T14:32:37","slug":"mvc-architecture","status":"publish","type":"post","link":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/","title":{"rendered":"MVC Architecture"},"content":{"rendered":"<p>MVC(model-view-controller) Architecture aims to separate business logic from user interface considerations, so that developers can more easily change each part without affecting the other. In MVC, the model represents the information (the data) and the business rules; the view contains elements of the user interface such as text, form inputs; and the controller manages the communication between the model and the view.<\/p>\n<p><strong>Work Flow of MVC Architecture:<\/strong><\/p>\n<figure id=\"attachment_290\" aria-describedby=\"caption-attachment-290\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-290\" alt=\"MVC architecture\" src=\"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png\" width=\"300\" height=\"192\" \/><\/a><figcaption id=\"caption-attachment-290\" class=\"wp-caption-text\">MVC architecture<\/figcaption><\/figure>\n<p>The view contains the html code which is interface for communication with the users which is loaded by the controller to receive the user inputs.The controller which in turn sends the input to the model to process with database and the model will send\u00a0 the data processed .to the controller and is displayed to the view.There are helper classes and plugins in all the framework which makes the development Faster with less code.<\/p>\n<p><strong>Advantages of MVC Architecture:<\/strong><\/p>\n<ol start=\"1\">\n<li>Most of the Frameworks speed up the development process by automatically creating functionality like CRUD so that the developer can focus on creativity than base structure.<\/li>\n<\/ol>\n<ol start=\"2\">\n<li>These frameworks have\u00a0inbuilt\u00a0Core Library, hence coding gets lighter as compared to the traditional way\u00a0of PHP coding.<\/li>\n<\/ol>\n<ol start=\"3\">\n<li>PHP frameworks have their own specific debugging methodologies.<\/li>\n<\/ol>\n<ol start=\"4\">\n<li>All top PHP frameworks come with certain\u00a0<b>Libraries<\/b>\u00a0and\u00a0<b>Helpers<\/b>, that help you with:<\/li>\n<\/ol>\n<ul>\n<ul>\n<ul>\n<li>Form Validation<\/li>\n<li>Input\/output<\/li>\n<li>Database Abstration<\/li>\n<li>Session and cookie Handling<\/li>\n<li>Email,Calendar,Pagination etc<\/li>\n<\/ul>\n<\/ul>\n<\/ul>\n<p>5. Security : In PHP you can already find many input and output filtering functions to protect \u00a0your website against certain attacks.Instead of including it manually \u00a0with a\u00a0 framework,most of the work can be done for you automatically.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>MVC(model-view-controller) Architecture aims to separate business logic from user interface considerations, so that developers can more easily change each part without affecting the other. In MVC, the model represents the information (the data) and the business rules; the view contains elements of the user interface such as text, form inputs; and the controller manages the [&hellip;]<\/p>\n","protected":false},"author":7,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[9,6],"tags":[67],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-development","category-tutorials","tag-mvc-architecture"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>MVC Architecture - Siri Innovations<\/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:\/\/siriinnovations.com\/blog\/mvc-architecture\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MVC Architecture - Siri Innovations\" \/>\n<meta property=\"og:description\" content=\"MVC(model-view-controller) Architecture aims to separate business logic from user interface considerations, so that developers can more easily change each part without affecting the other. In MVC, the model represents the information (the data) and the business rules; the view contains elements of the user interface such as text, form inputs; and the controller manages the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/\" \/>\n<meta property=\"og:site_name\" content=\"Siri Innovations\" \/>\n<meta property=\"article:published_time\" content=\"2013-05-27T12:13:11+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2013-07-21T14:32:37+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png\" \/>\n<meta name=\"author\" content=\"Ashwini Dhanuche\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ashwini Dhanuche\" \/>\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:\/\/siriinnovations.com\/blog\/mvc-architecture\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/\"},\"author\":{\"name\":\"Ashwini Dhanuche\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/85a9915410e74e078e7b71b823a67a0c\"},\"headline\":\"MVC Architecture\",\"datePublished\":\"2013-05-27T12:13:11+00:00\",\"dateModified\":\"2013-07-21T14:32:37+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/\"},\"wordCount\":277,\"commentCount\":1,\"image\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png\",\"keywords\":[\"MVC Architecture\"],\"articleSection\":[\"Development\",\"Tutorials\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/\",\"url\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/\",\"name\":\"MVC Architecture - Siri Innovations\",\"isPartOf\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png\",\"datePublished\":\"2013-05-27T12:13:11+00:00\",\"dateModified\":\"2013-07-21T14:32:37+00:00\",\"author\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/85a9915410e74e078e7b71b823a67a0c\"},\"breadcrumb\":{\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#primaryimage\",\"url\":\"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png\",\"contentUrl\":\"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/siriinnovations.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"MVC Architecture\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/#website\",\"url\":\"https:\/\/siriinnovations.com\/blog\/\",\"name\":\"Technical blog from Siri Innovations\",\"description\":\"Innovative like no other\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/siriinnovations.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/85a9915410e74e078e7b71b823a67a0c\",\"name\":\"Ashwini Dhanuche\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e1a5b8df11aae0d2b6b890486e885d8e8c327db4ce84aa8fc84126c69f64b6da?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e1a5b8df11aae0d2b6b890486e885d8e8c327db4ce84aa8fc84126c69f64b6da?s=96&d=mm&r=g\",\"caption\":\"Ashwini Dhanuche\"},\"url\":\"https:\/\/siriinnovations.com\/blog\/author\/ashwini\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"MVC Architecture - Siri Innovations","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:\/\/siriinnovations.com\/blog\/mvc-architecture\/","og_locale":"en_US","og_type":"article","og_title":"MVC Architecture - Siri Innovations","og_description":"MVC(model-view-controller) Architecture aims to separate business logic from user interface considerations, so that developers can more easily change each part without affecting the other. In MVC, the model represents the information (the data) and the business rules; the view contains elements of the user interface such as text, form inputs; and the controller manages the [&hellip;]","og_url":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/","og_site_name":"Siri Innovations","article_published_time":"2013-05-27T12:13:11+00:00","article_modified_time":"2013-07-21T14:32:37+00:00","og_image":[{"url":"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png","type":"","width":"","height":""}],"author":"Ashwini Dhanuche","twitter_misc":{"Written by":"Ashwini Dhanuche","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#article","isPartOf":{"@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/"},"author":{"name":"Ashwini Dhanuche","@id":"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/85a9915410e74e078e7b71b823a67a0c"},"headline":"MVC Architecture","datePublished":"2013-05-27T12:13:11+00:00","dateModified":"2013-07-21T14:32:37+00:00","mainEntityOfPage":{"@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/"},"wordCount":277,"commentCount":1,"image":{"@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#primaryimage"},"thumbnailUrl":"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png","keywords":["MVC Architecture"],"articleSection":["Development","Tutorials"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/","url":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/","name":"MVC Architecture - Siri Innovations","isPartOf":{"@id":"https:\/\/siriinnovations.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#primaryimage"},"image":{"@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#primaryimage"},"thumbnailUrl":"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png","datePublished":"2013-05-27T12:13:11+00:00","dateModified":"2013-07-21T14:32:37+00:00","author":{"@id":"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/85a9915410e74e078e7b71b823a67a0c"},"breadcrumb":{"@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/siriinnovations.com\/blog\/mvc-architecture\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#primaryimage","url":"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png","contentUrl":"http:\/\/www.siriinnovations.com\/blog\/wp-content\/uploads\/2013\/05\/mvc-300x192.png"},{"@type":"BreadcrumbList","@id":"https:\/\/siriinnovations.com\/blog\/mvc-architecture\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/siriinnovations.com\/blog\/"},{"@type":"ListItem","position":2,"name":"MVC Architecture"}]},{"@type":"WebSite","@id":"https:\/\/siriinnovations.com\/blog\/#website","url":"https:\/\/siriinnovations.com\/blog\/","name":"Technical blog from Siri Innovations","description":"Innovative like no other","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/siriinnovations.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/85a9915410e74e078e7b71b823a67a0c","name":"Ashwini Dhanuche","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/siriinnovations.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e1a5b8df11aae0d2b6b890486e885d8e8c327db4ce84aa8fc84126c69f64b6da?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e1a5b8df11aae0d2b6b890486e885d8e8c327db4ce84aa8fc84126c69f64b6da?s=96&d=mm&r=g","caption":"Ashwini Dhanuche"},"url":"https:\/\/siriinnovations.com\/blog\/author\/ashwini\/"}]}},"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/comments?post=289"}],"version-history":[{"count":12,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/posts\/289\/revisions"}],"predecessor-version":[{"id":1078,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/posts\/289\/revisions\/1078"}],"wp:attachment":[{"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/media?parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/categories?post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/siriinnovations.com\/blog\/wp-json\/wp\/v2\/tags?post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}