{"id":1757,"date":"2013-05-11T11:45:13","date_gmt":"2013-05-11T11:45:13","guid":{"rendered":"http:\/\/webkul.com\/blog\/?p=1757"},"modified":"2024-02-27T04:47:01","modified_gmt":"2024-02-27T04:47:01","slug":"start-magento2-hello-word-module","status":"publish","type":"post","link":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/","title":{"rendered":"Start Magento2 &#8220;Hello Word&#8221; Module"},"content":{"rendered":"\n<p>Note:- &#8220;Webkul&#8221; is your company name and Test is module name<\/p>\n\n\n\n<p>Folder structure<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled.png\"><img decoding=\"async\" width=\"300\" height=\"196\" src=\"http:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png\" alt=\"Untitled\" class=\"wp-image-1758\" srcset=\"https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png 300w, https:\/\/cdnblog.webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled.png 494w\" sizes=\"(max-width: 300px) 100vw, 300px\" loading=\"lazy\" \/><\/a><\/figure>\n\n\n\n<p>for hello word module<\/p>\n\n\n\n<p>files are following<\/p>\n\n\n\n<p>app\/code\/Webkul\/Test\/etc\/config.xml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;config&gt;\n    &lt;modules&gt;\n        &lt;Webkul_Test&gt; &lt;!--Module discription--&gt;\n            &lt;version&gt;1.0.0&lt;\/version&gt;\n            &lt;active&gt;true&lt;\/active&gt;\n        &lt;\/Webkul_Test&gt;\n    &lt;\/modules&gt;\t\n    &lt;frontend&gt;\n     &lt;layout&gt;\n            &lt;updates&gt;\n                &lt;webkul_test module=&quot;Webkul_Test&quot;&gt;\n                    &lt;file&gt;layout.xml&lt;\/file&gt;\n                &lt;\/webkul_test&gt;\n            &lt;\/updates&gt;\n        &lt;\/layout&gt;\n    &lt;\/frontend&gt;\n&lt;\/config&gt;<\/pre>\n\n\n\n<p>app\/code\/Webkul\/Test\/Block\/Hello.php<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php\nclass Webkul_Test_Block_Hello extends Mage_Core_Block_Template{\n\n}\n\n?&gt;<\/pre>\n\n\n\n<p>app\/design\/frontend\/default\/demo\/Webkul_Test\/layout.xml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?xml version=&quot;1.0&quot;?&gt;\n&lt;layout version=&quot;0.1.0&quot;&gt;\n    &lt;catalog_product_view&gt;\n\t&lt;reference name=&quot;content&quot;&gt;\n\t\t&lt;block type=&quot;Webkul_Test_Block_Hello&quot; name=&quot;wk-block&quot; template=&quot;hello.phtml&quot; \/&gt;\n\t&lt;\/reference &gt;\n    &lt;\/catalog_product_view&gt;\t\n&lt;\/layout&gt;<\/pre>\n\n\n\n<p>app\/design\/frontend\/default\/demo\/Webkul_Test\/Hello.phtml<\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\">&lt;?php ?&gt;\n&lt;h2&gt;hello new magento&lt;\/h2&gt;<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Note:- &#8220;Webkul&#8221; is your company name and Test is module name Folder structure for hello word module files are following app\/code\/Webkul\/Test\/etc\/config.xml app\/code\/Webkul\/Test\/Block\/Hello.php app\/design\/frontend\/default\/demo\/Webkul_Test\/layout.xml app\/design\/frontend\/default\/demo\/Webkul_Test\/Hello.phtml<\/p>\n","protected":false},"author":4,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[302],"tags":[],"class_list":["post-1757","post","type-post","status-publish","format-standard","hentry","category-magento2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Start Magento2 &quot;Hello Word&quot; Module - 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\/start-magento2-hello-word-module\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Start Magento2 &quot;Hello Word&quot; Module - Webkul Blog\" \/>\n<meta property=\"og:description\" content=\"Note:- &#8220;Webkul&#8221; is your company name and Test is module name Folder structure for hello word module files are following app\/code\/Webkul\/Test\/etc\/config.xml app\/code\/Webkul\/Test\/Block\/Hello.php app\/design\/frontend\/default\/demo\/Webkul_Test\/layout.xml app\/design\/frontend\/default\/demo\/Webkul_Test\/Hello.phtml\" \/>\n<meta property=\"og:url\" content=\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/\" \/>\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=\"2013-05-11T11:45:13+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-27T04:47:01+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png\" \/>\n<meta name=\"author\" content=\"Abhishek Singh\" \/>\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=\"Abhishek Singh\" \/>\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:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/\"},\"author\":{\"name\":\"Abhishek Singh\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0\"},\"headline\":\"Start Magento2 &#8220;Hello Word&#8221; Module\",\"datePublished\":\"2013-05-11T11:45:13+00:00\",\"dateModified\":\"2024-02-27T04:47:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/\"},\"wordCount\":58,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/webkul.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png\",\"articleSection\":[\"Magento2\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/\",\"url\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/\",\"name\":\"Start Magento2 \\\"Hello Word\\\" Module - Webkul Blog\",\"isPartOf\":{\"@id\":\"https:\/\/webkul.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#primaryimage\"},\"thumbnailUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png\",\"datePublished\":\"2013-05-11T11:45:13+00:00\",\"dateModified\":\"2024-02-27T04:47:01+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#primaryimage\",\"url\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png\",\"contentUrl\":\"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/webkul.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Start Magento2 &#8220;Hello Word&#8221; Module\"}]},{\"@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\/573e459f54796eb4195511990de4bfd0\",\"name\":\"Abhishek Singh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?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\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g\",\"caption\":\"Abhishek Singh\"},\"description\":\"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.\",\"sameAs\":[\"http:\/\/webkul.com\"],\"url\":\"https:\/\/webkul.com\/blog\/author\/abhishek\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Start Magento2 \"Hello Word\" Module - 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\/start-magento2-hello-word-module\/","og_locale":"en_US","og_type":"article","og_title":"Start Magento2 \"Hello Word\" Module - Webkul Blog","og_description":"Note:- &#8220;Webkul&#8221; is your company name and Test is module name Folder structure for hello word module files are following app\/code\/Webkul\/Test\/etc\/config.xml app\/code\/Webkul\/Test\/Block\/Hello.php app\/design\/frontend\/default\/demo\/Webkul_Test\/layout.xml app\/design\/frontend\/default\/demo\/Webkul_Test\/Hello.phtml","og_url":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/","og_site_name":"Webkul Blog","article_publisher":"https:\/\/www.facebook.com\/webkul\/","article_published_time":"2013-05-11T11:45:13+00:00","article_modified_time":"2024-02-27T04:47:01+00:00","og_image":[{"url":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png","type":"","width":"","height":""}],"author":"Abhishek Singh","twitter_card":"summary_large_image","twitter_creator":"@webkul","twitter_site":"@webkul","twitter_misc":{"Written by":"Abhishek Singh","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#article","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/"},"author":{"name":"Abhishek Singh","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/573e459f54796eb4195511990de4bfd0"},"headline":"Start Magento2 &#8220;Hello Word&#8221; Module","datePublished":"2013-05-11T11:45:13+00:00","dateModified":"2024-02-27T04:47:01+00:00","mainEntityOfPage":{"@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/"},"wordCount":58,"commentCount":0,"publisher":{"@id":"https:\/\/webkul.com\/blog\/#organization"},"image":{"@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#primaryimage"},"thumbnailUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png","articleSection":["Magento2"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/","url":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/","name":"Start Magento2 \"Hello Word\" Module - Webkul Blog","isPartOf":{"@id":"https:\/\/webkul.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#primaryimage"},"image":{"@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#primaryimage"},"thumbnailUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png","datePublished":"2013-05-11T11:45:13+00:00","dateModified":"2024-02-27T04:47:01+00:00","breadcrumb":{"@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#primaryimage","url":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png","contentUrl":"http:\/\/webkul.com\/blog\/wp-content\/uploads\/2013\/05\/Untitled-300x196.png"},{"@type":"BreadcrumbList","@id":"https:\/\/webkul.com\/blog\/start-magento2-hello-word-module\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/webkul.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Start Magento2 &#8220;Hello Word&#8221; Module"}]},{"@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\/573e459f54796eb4195511990de4bfd0","name":"Abhishek Singh","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/webkul.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?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\/d4ac7e0e671bf743359d7e3f140c262d1b16d71106f0a1aeaecca327a2805ae4?s=96&d=https%3A%2F%2Fcdnblog.webkul.com%2Fblog%2Fwp-content%2Fuploads%2F2019%2F10%2Fmike.png&r=g","caption":"Abhishek Singh"},"description":"Adobe Commerce certified Magento developer with over 12 years of experience at Webkul. Passionate about scalable Magento 2-based webshops, AI, and multi-channel integrations, Abhishek consistently delivers innovative and efficient e-commerce solutions that propel businesses forward.","sameAs":["http:\/\/webkul.com"],"url":"https:\/\/webkul.com\/blog\/author\/abhishek\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1757","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\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/comments?post=1757"}],"version-history":[{"count":6,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1757\/revisions"}],"predecessor-version":[{"id":424546,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/posts\/1757\/revisions\/424546"}],"wp:attachment":[{"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/media?parent=1757"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/categories?post=1757"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webkul.com\/blog\/wp-json\/wp\/v2\/tags?post=1757"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}