{"id":71594,"date":"2017-01-14T12:54:50","date_gmt":"2017-01-14T12:54:50","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=71594"},"modified":"2017-01-14T13:21:09","modified_gmt":"2017-01-14T13:21:09","slug":"route-flow-opencart","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/route-flow-opencart\/","title":{"rendered":"Route Flow Of Opencart"},"content":{"rendered":"<p>Today we will discussed the route flow of Opencart and how MVC work in opencart. MVC is not an application, basically it follows a design pattern and based on layered architecture.<\/p>\n<p><strong>MVC (Model View Controller)<\/strong><\/p>\n<p>In Opencart, Model, View and Controller are the three layered which are used for passing the data to each other layered in a well defined manner.<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-71611\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart_Mvc_pattern.png\" alt=\"\" width=\"999\" height=\"576\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart_Mvc_pattern.png 999w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart_Mvc_pattern-250x144.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart_Mvc_pattern-300x173.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart_Mvc_pattern-768x443.png 768w\" sizes=\"(max-width: 999px) 100vw, 999px\" loading=\"lazy\" \/><\/p>\n<p><strong>1.Controller: <\/strong>In Opencart, Controller play a role of mediator which manage the whole control of program. while any customer hit a URL through browser, then the controller file will be called. Inside the controller we can load the model and call methods of that model file to get the related data. After getting response from model file controller send the data to the view file. We can also include the JS and CSS files in Opencart&#8217;s controller.<\/p>\n<h5><strong style=\"color: red\"><img decoding=\"async\" class=\"alignnone size-full wp-image-71628\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart1.png\" alt=\"\" width=\"860\" height=\"201\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart1.png 860w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart1-250x58.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart1-300x70.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart1-768x179.png 768w\" sizes=\"(max-width: 860px) 100vw, 860px\" loading=\"lazy\" \/><\/strong><\/h5>\n<p><strong>2.Model: <\/strong>Model file used to fetch the data from database by using SQL queries and return same data to controller. Model file mainly used to perform some operation with database through SQL Commands like DDL (Data Definition Language i.e. Create, Alter, Drop, Truncate, etc.) and DML (Data Manipulation Language i.e. Select, Insert, Update, Delete,Merge, etc.).<\/p>\n<h5><strong style=\"color: red\">\u00a0<img decoding=\"async\" class=\"alignnone size-full wp-image-71629\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart2.png\" alt=\"\" width=\"909\" height=\"179\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart2.png 909w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart2-250x49.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart2-300x59.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart2-768x151.png 768w\" sizes=\"(max-width: 909px) 100vw, 909px\" loading=\"lazy\" \/><\/strong><\/h5>\n<p><strong>3.View: <\/strong>View file receives the resultant data from controller file in php, json, etc format and view that data to the browsers. You can write the HTML, JS\/JQuery, Css and PHP code in view file in opencart. We use the <strong>.tpl<\/strong> <strong>Extension<\/strong> for the view file.<\/p>\n<h5><strong style=\"color: red\">\u00a0\u00a0\u00a0\u00a0\u00a0 <img decoding=\"async\" class=\"alignnone size-full wp-image-71630\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart3.png\" alt=\"\" width=\"892\" height=\"219\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart3.png 892w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart3-250x61.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart3-300x74.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Opencart3-768x189.png 768w\" sizes=\"(max-width: 892px) 100vw, 892px\" loading=\"lazy\" \/><\/strong><\/h5>\n<p><strong>4. Language:<\/strong>\u00a0We also use a file called <strong>language <\/strong>file for sting mapping with the array index. Controller loads this language file by fetching the all the index with their string conversion and render those array index to the .tpl file.<\/p>\n<h5><strong style=\"color: red\"><img decoding=\"async\" class=\"alignnone size-full wp-image-71631\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart4.png\" alt=\"\" width=\"864\" height=\"166\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart4.png 864w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart4-250x48.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart4-300x58.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/opencart4-768x148.png 768w\" sizes=\"(max-width: 864px) 100vw, 864px\" loading=\"lazy\" \/><\/strong><\/h5>\n<p><strong>Route Flow of Opencart<\/strong><\/p>\n<ul>\n<li style=\"color: #000\">admin\/index.php, index.php<\/li>\n<li style=\"color: #000\">Script,Style\n<ul>\n<li>Document :: addScript( )<\/li>\n<li>Document :: addStyle( )<\/li>\n<\/ul>\n<\/li>\n<li style=\"color: #000\">Controller Processing\n<ul>\n<li>Loader :: controller($route)<\/li>\n<li>Action :: execute($this-&gt;registry, array(&amp;$data))<\/li>\n<\/ul>\n<\/li>\n<li style=\"color: #000\">Model Processing\n<ul>\n<li>Loder :: model($route)<\/li>\n<li>include file- modification(file_name)<\/li>\n<\/ul>\n<\/li>\n<li style=\"color: #000\">Rendering View file\n<ul>\n<li>Template :: render($route.&#8217;.tpl&#8217;)<\/li>\n<\/ul>\n<\/li>\n<li style=\"color: #000\">Config Processing\n<ul>\n<li>Config :: load($route)<\/li>\n<\/ul>\n<\/li>\n<li style=\"color: #000\">Event processing\n<ul>\n<li>Event :: register($trigger, $action)<\/li>\n<li>Event :: trigger($event)<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p>&nbsp;<\/p>\n<p><strong>A) Initial Phase in Opencart<\/strong><\/p>\n<p>In start, the index.php file called when you hit your opencart store site url in browser and inside the index.php file, its include the <strong>statup.php<\/strong> in which you will find the code for validate the php version and set the default time zone.<\/p>\n<p><strong><img decoding=\"async\" class=\"alignnone size-full wp-image-71632\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_11.png\" alt=\"\" width=\"653\" height=\"149\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_11.png 653w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_11-250x57.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_11-300x68.png 300w\" sizes=\"(max-width: 653px) 100vw, 653px\" loading=\"lazy\" \/><\/strong><\/p>\n<p>In startup.php file we have a method named as <strong>modification($filename)<\/strong> which returns the full matched path of modification files only if your are using <strong>ocmod.xml<\/strong> file:<\/p>\n<h5><img decoding=\"async\" class=\"alignnone size-full wp-image-71634\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_12.png\" alt=\"\" width=\"934\" height=\"378\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_12.png 934w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_12-250x101.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_12-300x121.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_12-768x311.png 768w\" sizes=\"(max-width: 934px) 100vw, 934px\" loading=\"lazy\" \/><\/h5>\n<p>You will also find the <strong>start(&#8216;catalog&#8217;)<\/strong> inside the <strong>system\/startup.php<\/strong> file which will load the framework.php file in which all the used classes&#8217;s object are created and set to the registry. By which you can access all the system classes into the controller.<\/p>\n<p><strong>B) Controller Architecture<\/strong><\/p>\n<p>Controller Class declaration is same for both admin and catalog side. If you will open any controller from\u00a0 admin or catalog end, you will find class name like as:<\/p>\n<p><strong>Syntex:<\/strong><\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-71635\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_13.png\" alt=\"\" width=\"814\" height=\"186\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_13.png 814w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_13-250x57.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_13-300x69.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_13-768x175.png 768w\" sizes=\"(max-width: 814px) 100vw, 814px\" loading=\"lazy\" \/><\/p>\n<p>You should be always write Controller keyword first than your file path in <strong>Camel Case without any whitespace. <\/strong>In any controller file, index method calls first while hit the controller route through URL.<\/p>\n<p><strong>\u00a0 B.1)<\/strong> <strong>Nested Controller<\/strong><\/p>\n<p>You can also include other controller within main controller by using below code:<\/p>\n<p><strong>\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 <img decoding=\"async\" class=\"alignnone size-full wp-image-71636\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_14.png\" alt=\"\" width=\"859\" height=\"85\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_14.png 859w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_14-250x25.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_14-300x30.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_14-768x76.png 768w\" sizes=\"(max-width: 859px) 100vw, 859px\" loading=\"lazy\" \/><br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>B.2) Load Script and Style Sheet<\/strong><\/p>\n<p>There are two way to load the style and script file in opencart, Either you can load these file through controller or define on view file(.tpl). To load on controller you have to use below command:<\/p>\n<p><img decoding=\"async\" class=\"alignnone size-full wp-image-71638\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_15.png\" alt=\"\" width=\"847\" height=\"148\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_15.png 847w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_15-250x44.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_15-300x52.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_15-768x134.png 768w\" sizes=\"(max-width: 847px) 100vw, 847px\" loading=\"lazy\" \/><\/p>\n<p>&nbsp;<\/p>\n<p><strong>B.3) Load the Model File<\/strong><\/p>\n<p>You can load the model on controller and can call model function by using the following command:<\/p>\n<p><strong><img decoding=\"async\" class=\"alignnone size-full wp-image-71639\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_16.png\" alt=\"\" width=\"840\" height=\"131\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_16.png 840w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_16-250x39.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_16-300x47.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_16-768x120.png 768w\" sizes=\"(max-width: 840px) 100vw, 840px\" loading=\"lazy\" \/><\/strong><\/p>\n<p>&nbsp;<\/p>\n<p><strong>B.4) Render the Template(View) File<\/strong><\/p>\n<p>To send\/view the data from controller to view (.tpl) file you have to use below code:<\/p>\n<p><strong><img decoding=\"async\" class=\"alignnone size-full wp-image-71640\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_17.png\" alt=\"\" width=\"867\" height=\"194\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_17.png 867w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_17-250x56.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_17-300x67.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2017\/01\/Screenshot_17-768x172.png 768w\" sizes=\"(max-width: 867px) 100vw, 867px\" loading=\"lazy\" \/><br \/>\n<\/strong><\/p>\n<p>&nbsp;<\/p>\n<p>Thanks \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today we will discussed the route flow of Opencart and how MVC work in opencart. MVC is not an application, basically it follows a design pattern and based on layered architecture. MVC (Model View Controller) In Opencart, Model, View and Controller are the three layered which are used for passing the data to each other <a href=\"https:\/\/webkul.com\/blog\/route-flow-opencart\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":34,"featured_media":41008,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[305],"tags":[4350,4348,4349],"class_list":["post-71594","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-opencart","tag-opencart-reqeust-flow","tag-opencart-routeflow","tag-request-flow-of-opencart"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Route Flow Of Opencart - Webkul 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:\/\/webkul.com\/blog\/route-flow-opencart\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Route Flow Of Opencart - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Today we will discussed the route flow of Opencart and how MVC work in opencart. MVC is not an application, basically it follows a design pattern and based on layered architecture. MVC (Model View Controller) In Opencart, Model, View and Controller are the three layered which are used for passing the data to each other [...]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/route-flow-opencart\/\" \/>\n<meta property=\"og:site_name\" content=\"Webkul Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/webkul\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-01-14T12:54:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2017-01-14T13:21:09+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\" \/>\n\t<meta property=\"og:image:width\" content=\"825\" \/>\n\t<meta property=\"og:image:height\" content=\"260\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Vivek Sharma\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@webkul\" \/>\n<meta name=\"twitter:site\" content=\"@webkul\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Vivek Sharma\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/\"},\"author\":{\"name\":\"Vivek Sharma\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/55a090ee89f2ea288152d9618972d51a\"},\"headline\":\"Route Flow Of Opencart\",\"datePublished\":\"2017-01-14T12:54:50+00:00\",\"dateModified\":\"2017-01-14T13:21:09+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/\"},\"wordCount\":649,\"commentCount\":6,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"keywords\":[\"Opencart Reqeust Flow\",\"Opencart routeflow\",\"Request Flow Of Opencart\"],\"articleSection\":[\"opencart\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/route-flow-opencart\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/\",\"url\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/\",\"name\":\"Route Flow Of Opencart - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"datePublished\":\"2017-01-14T12:54:50+00:00\",\"dateModified\":\"2017-01-14T13:21:09+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/route-flow-opencart\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/#primaryimage\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png\",\"width\":825,\"height\":260},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/route-flow-opencart\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Route Flow Of Opencart\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/webkul.com\/blog\/#website\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"name\":\"Webkul Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/webkul.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/webkul.com\/blog\/#organization\",\"name\":\"WebKul Software Private Limited\",\"url\":\"https:\/\/webkul.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"contentUrl\":\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png\",\"width\":380,\"height\":380,\"caption\":\"WebKul Software Private Limited\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/webkul\/\",\"https:\/\/x.com\/webkul\",\"https:\/\/www.instagram.com\/webkul\/\",\"https:\/\/www.linkedin.com\/company\/webkul\",\"https:\/\/www.youtube.com\/user\/webkul\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/55a090ee89f2ea288152d9618972d51a\",\"name\":\"Vivek Sharma\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/016ec12a9caaedb7c6003878edfc412b2e9a5159e75bac4338ab7eeaaec9d92d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/016ec12a9caaedb7c6003878edfc412b2e9a5159e75bac4338ab7eeaaec9d92d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Vivek Sharma\"},\"sameAs\":[\"https:\/\/store.webkul.com\/\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/viveksh047\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Route Flow Of Opencart - Webkul 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:\/\/webkul.com\/blog\/route-flow-opencart\/","og_locale":"en_US","og_type":"article","og_title":"Route Flow Of Opencart - Webkul Blog","og_description":"Today we will discussed the route flow of Opencart and how MVC work in opencart. MVC is not an application, basically it follows a design pattern and based on layered architecture. MVC (Model View Controller) In Opencart, Model, View and Controller are the three layered which are used for passing the data to each other [...]","og_url":"https:\/\/webkul.com\/blog\/route-flow-opencart\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2017-01-14T12:54:50+00:00","article_modified_time":"2017-01-14T13:21:09+00:00","og_image":[{"width":825,"height":260,"url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","type":"image\/png"}],"author":"Vivek Sharma","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Vivek Sharma","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/"},"author":{"name":"Vivek Sharma","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/55a090ee89f2ea288152d9618972d51a"},"headline":"Route Flow Of Opencart","datePublished":"2017-01-14T12:54:50+00:00","dateModified":"2017-01-14T13:21:09+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/"},"wordCount":649,"commentCount":6,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","keywords":["Opencart Reqeust Flow","Opencart routeflow","Request Flow Of Opencart"],"articleSection":["opencart"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/route-flow-opencart\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/","url":"https:\/\/webkul.com\/blog\/route-flow-opencart\/","name":"Route Flow Of Opencart - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/#primaryimage"},"thumbnailUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","datePublished":"2017-01-14T12:54:50+00:00","dateModified":"2017-01-14T13:21:09+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/route-flow-opencart\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/#primaryimage","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/02\/Opencart-Code-Snippet.png","width":825,"height":260},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/route-flow-opencart\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Route Flow Of Opencart"}]},{"@type":"WebSite","@id":"https:\/\/webkul.com\/blog\/#website","url":"https:\/\/webkul.com\/blog\/","name":"Webkul Blog","description":"","publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/webkul.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/webkul.com\/blog\/#organization","name":"WebKul Software Private Limited","url":"https:\/\/webkul.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","contentUrl":"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2021\/08\/webkul-logo-accent-sq.png","width":380,"height":380,"caption":"WebKul Software Private Limited"},"image":{"@id":"https:\/\/webkul.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/webkul\/","https:\/\/x.com\/webkul","https:\/\/www.instagram.com\/webkul\/","https:\/\/www.linkedin.com\/company\/webkul","https:\/\/www.youtube.com\/user\/webkul\/"]},{"@type":"Person","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/55a090ee89f2ea288152d9618972d51a","name":"Vivek Sharma","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/016ec12a9caaedb7c6003878edfc412b2e9a5159e75bac4338ab7eeaaec9d92d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/016ec12a9caaedb7c6003878edfc412b2e9a5159e75bac4338ab7eeaaec9d92d?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Vivek Sharma"},"sameAs":["https:\/\/store.webkul.com\/"],"url":"https:\/\/webkul.com\/blog\/author\/viveksh047\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71594","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/users\/34"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=71594"}],"version-history":[{"count":12,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71594\/revisions"}],"predecessor-version":[{"id":71649,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/71594\/revisions\/71649"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media\/41008"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=71594"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=71594"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=71594"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}