{"id":49557,"date":"2016-05-18T15:16:53","date_gmt":"2016-05-18T15:16:53","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=49557"},"modified":"2016-05-19T08:19:29","modified_gmt":"2016-05-19T08:19:29","slug":"create-two-renderlist-one-controller-prestashop","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/","title":{"rendered":"RenderList &#8211; Create two renderList on same controller in prestashop"},"content":{"rendered":"<p>Many time we need to show database information on our\u00a0controller using\u00a0renderList. But there is only one render list possibly to display on same controller.<\/p>\n<p>In post, \u00a0i will make you understand how can we write two or more render list with different tables and class name on same controller without putting any condition. As we know render list contain className and tableName to display information. So there is only one className and one tableName then how we can write two render list on same controller using two different tables.<\/p>\n<p>Lets start with here<\/p>\n<p>View of normal render list, we have used field list in constructor.<\/p>\n<pre class=\"brush:php\">public function __construct()\r\n{\r\n\t$this-&gt;bootstrap = true;\r\n\t$this-&gt;table = 'yourTableName';\r\n\t$this-&gt;className   = 'yourClassName';\r\n\t$this-&gt;fields_list = array(\r\n\t\t'id' =&gt; array(\r\n\t\t\t'title' =&gt; $this-&gt;l('Id'),\r\n\t\t\t'align' =&gt; 'center'\r\n\t\t\t)\r\n\t\t);\r\n\t$this-&gt;identifier = 'id';\r\n\tparent::__construct();\r\n}\r\n\r\n\r\n<\/pre>\n<p>The above renderList is simple as we have seen in many controllers. We can use same code in our renderList function. This code will only create one render List. We need to display another List with different table then what ?.<\/p>\n<p>If we use array to renderList to display multiple then ?? Then it will only display last array of render List, means it will overwrite all the array with last one.<\/p>\n<h2>Lets see\u00a0the code to display two renderList with different table names<\/h2>\n<pre class=\"brush:php\">public function __construct()\r\n{\r\n    $this-&gt;bootstrap = true;\r\n    $this-&gt;table = 'yourTableName';\r\n    $this-&gt;className = 'yourClassName';\r\n    $this-&gt;identifier = 'id';\r\n    parent::__construct();\r\n}\r\n\r\npublic function renderList()\r\n{\r\n     $this-&gt;bulk_actions = array(\r\n          'delete' =&gt; array(\r\n              'text' =&gt; $this-&gt;l('Delete selected'),\r\n              'confirm' =&gt; $this-&gt;l('Delete selected items?'),\r\n              'icon' =&gt; 'icon-trash',\r\n          )\r\n      );\r\n      $this-&gt;initFirstRenderList();\r\n      $lists = parent::renderList();\r\n      \r\n      $this-&gt;initSecondRenderList();\r\n      $lists .= parent::renderList();\r\n\r\n      return $lists;\r\n}<\/pre>\n<p>We have used __constructor to define our className and tableName that will be used in our renderList to display information. By default it takes className and tableName from the constructor.<\/p>\n<p>Now, we are using renderList function to call <strong>initFirstRenderList()<\/strong> and <strong>initSecondRenderList()<\/strong>, means we are here calling two method. Methods name can be anything here.<\/p>\n<p>After calling <strong>initFirstRenderList<\/strong>(), we just called the parent method of renderList and store it in a variable to use in second List.<\/p>\n<p><strong>Lets see the code of initFirstRenderList<\/strong><\/p>\n<pre class=\"brush:php\">protected function initFirstRenderList()\r\n{\r\n    $this-&gt;toolbar_title = $this-&gt;l('First Render List Title');\r\n\r\n    $this-&gt;fields_list = array(\r\n        'first_field' =&gt; array(\r\n            'title' =&gt; $this-&gt;l('First Title'),\r\n            'align' =&gt; 'center',\r\n        ),\r\n        'second_field' =&gt; array(\r\n            'title' =&gt; $this-&gt;l('Second Title'),\r\n            'align' =&gt; 'center',\r\n          )\r\n    );\r\n}<\/pre>\n<p><strong>Now, Lets see the code of secondRenderList<\/strong><\/p>\n<pre class=\"brush:php\">protected function initSecondRenderList()\r\n{\r\n    unset($this-&gt;fields_list, $this-&gt;_select, $this-&gt;_join);\r\n    $this-&gt;table = 'Second table for second render list';\r\n    $this-&gt;className = 'Second class name for second render list';\r\n    $this-&gt;identifier = 'id';\r\n    $this-&gt;toolbar_title = $this-&gt;l('Second RenderList Title');\r\n    $this-&gt;fields_list = array(\r\n         'first_field' =&gt; array(\r\n         'title' =&gt; $this-&gt;l('First title'),\r\n             'align' =&gt; 'center',\r\n             'class' =&gt; 'fixed-width-xs',\r\n         ),\r\n         'second_field' =&gt; array(\r\n             'title' =&gt; $this-&gt;l('Second title'),\r\n             'align' =&gt; 'center'\r\n          )\r\n      );\r\n }<\/pre>\n<p>See, the difference between these two function, in second function <strong>initSecondRenderList()\u00a0<\/strong>in the starting we just unset all the variables like<\/p>\n<pre class=\"brush:php\">$this-&gt;fields_list, $this-&gt;_select, $this-&gt;_join<\/pre>\n<p>in order to create second renderList with different class and table. We just unset all the previous variables. Now we can use different className different tabeleName to display different information in second render List.<\/p>\n<p><strong>See the outcome<\/strong><\/p>\n<p><a href=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png\"><img decoding=\"async\" class=\"alignnone wp-image-49629 size-full\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png\" alt=\"renderList\" width=\"1288\" height=\"716\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png 1288w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1-250x139.png 250w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1-300x167.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1-768x427.png 768w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1-1200x667.png 1200w\" sizes=\"(max-width: 1288px) 100vw, 1288px\" loading=\"lazy\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Many time we need to show database information on our\u00a0controller using\u00a0renderList. But there is only one render list possibly to display on same controller. In post, \u00a0i will make you understand how can we write two or more render list with different tables and class name on same controller without putting any condition. As we <a href=\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/\">[&#8230;]<\/a><\/p>\n","protected":false},"author":81,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[209],"tags":[3130,3133,2065,3132,3129,3131],"class_list":["post-49557","post","type-post","status-publish","format-standard","hentry","category-prestashop","tag-classname","tag-lists","tag-prestashop","tag-render","tag-renderlist","tag-tablename"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RenderList - Create two renderList on same controller in prestashop - Webkul Blog<\/title>\n<meta name=\"description\" content=\"how can we write two or more renderlist with different tables and class name on same controller without putting any condition\" \/>\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\/create-two-renderlist-one-controller-prestashop\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RenderList - Create two renderList on same controller in prestashop - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"how can we write two or more renderlist with different tables and class name on same controller without putting any condition\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/\" \/>\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=\"2016-05-18T15:16:53+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2016-05-19T08:19:29+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png\" \/>\n<meta name=\"author\" content=\"Deepak\" \/>\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=\"Deepak\" \/>\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\/create-two-renderlist-one-controller-prestashop\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/\"},\"author\":{\"name\":\"Deepak\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/06a72f75a5d335e9751297fb9839ef68\"},\"headline\":\"RenderList &#8211; Create two renderList on same controller in prestashop\",\"datePublished\":\"2016-05-18T15:16:53+00:00\",\"dateModified\":\"2016-05-19T08:19:29+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/\"},\"wordCount\":346,\"commentCount\":8,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png\",\"keywords\":[\"className\",\"lists\",\"prestashop\",\"render\",\"renderList\",\"tableName\"],\"articleSection\":[\"prestashop\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/\",\"url\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/\",\"name\":\"RenderList - Create two renderList on same controller in prestashop - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png\",\"datePublished\":\"2016-05-18T15:16:53+00:00\",\"dateModified\":\"2016-05-19T08:19:29+00:00\",\"description\":\"how can we write two or more renderlist with different tables and class name on same controller without putting any condition\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#primaryimage\",\"url\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png\",\"contentUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RenderList &#8211; Create two renderList on same controller in prestashop\"}]},{\"@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\/06a72f75a5d335e9751297fb9839ef68\",\"name\":\"Deepak\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/067dbf448c072fa8c6cb14b2e26949dc29c46c534e586b915b56f39c95cb2b95?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\/067dbf448c072fa8c6cb14b2e26949dc29c46c534e586b915b56f39c95cb2b95?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Deepak\"},\"description\":\"I love the web. Coding is my passion and love the learn new technologies.\",\"url\":\"https:\/\/webkul.com\/blog\/author\/deepak037\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RenderList - Create two renderList on same controller in prestashop - Webkul Blog","description":"how can we write two or more renderlist with different tables and class name on same controller without putting any condition","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\/create-two-renderlist-one-controller-prestashop\/","og_locale":"en_US","og_type":"article","og_title":"RenderList - Create two renderList on same controller in prestashop - Webkul Blog","og_description":"how can we write two or more renderlist with different tables and class name on same controller without putting any condition","og_url":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2016-05-18T15:16:53+00:00","article_modified_time":"2016-05-19T08:19:29+00:00","og_image":[{"url":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png","type":"","width":"","height":""}],"author":"Deepak","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Deepak","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/"},"author":{"name":"Deepak","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/06a72f75a5d335e9751297fb9839ef68"},"headline":"RenderList &#8211; Create two renderList on same controller in prestashop","datePublished":"2016-05-18T15:16:53+00:00","dateModified":"2016-05-19T08:19:29+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/"},"wordCount":346,"commentCount":8,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#primaryimage"},"thumbnailUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png","keywords":["className","lists","prestashop","render","renderList","tableName"],"articleSection":["prestashop"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/","url":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/","name":"RenderList - Create two renderList on same controller in prestashop - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#primaryimage"},"thumbnailUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png","datePublished":"2016-05-18T15:16:53+00:00","dateModified":"2016-05-19T08:19:29+00:00","description":"how can we write two or more renderlist with different tables and class name on same controller without putting any condition","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#primaryimage","url":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png","contentUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2016\/05\/1-18-1.png"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/create-two-renderlist-one-controller-prestashop\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"RenderList &#8211; Create two renderList on same controller in prestashop"}]},{"@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\/06a72f75a5d335e9751297fb9839ef68","name":"Deepak","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/067dbf448c072fa8c6cb14b2e26949dc29c46c534e586b915b56f39c95cb2b95?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\/067dbf448c072fa8c6cb14b2e26949dc29c46c534e586b915b56f39c95cb2b95?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Deepak"},"description":"I love the web. Coding is my passion and love the learn new technologies.","url":"https:\/\/webkul.com\/blog\/author\/deepak037\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/49557","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\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=49557"}],"version-history":[{"count":19,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/49557\/revisions"}],"predecessor-version":[{"id":49686,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/49557\/revisions\/49686"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=49557"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=49557"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=49557"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}