{"id":2197,"date":"2020-05-15T10:33:33","date_gmt":"2020-05-15T10:33:33","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=2197"},"modified":"2020-05-22T09:19:49","modified_gmt":"2020-05-22T09:19:49","slug":"tao-view-trong-magento-2","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view"},"content":{"rendered":"\n<div class=\"wp-block-group\"><div class=\"wp-block-group__inner-container is-layout-flow wp-block-group-is-layout-flow\">\n<p>Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng c\u1ee7a view.<\/p>\n\n\n\n<p>Nh\u01b0 c\u00e1c b\u1ea1n \u0111\u00e3 bi\u1ebft, \u1edf b\u00e0i 1 ch\u00fang ta t\u1ea1o 1 module \u0111\u01a1n gi\u1ea3n hi\u1ec3n th\u1ecb d\u00f2ng ch\u1eef Hello World ra trang store, \u0111\u1ec3 l\u00e0m \u0111\u01b0\u1ee3c \u0111i\u1ec1u \u0111\u00f3 ch\u00fang ta \u0111\u00e3 s\u1eed d\u1ee5ng view. N\u00ean c\u00f3 th\u1ec3 hi\u1ec3u 1 c\u00e1ch \u0111\u01a1n gi\u1ea3n r\u1eb1ng view gi\u00fap ch\u00fang ta hi\u1ec3n th\u1ecb n\u1ed9i dung tr\u00ean trang.  <\/p>\n\n\n\n<p>View trong Magento 2 \u0111\u01b0\u1ee3c x\u00e2y d\u1ef1ng t\u1eeb Block, Layout v\u00e0 Template.<\/p>\n<\/div><\/div>\n\n\n\n<p>Ch\u00fang ta \u0111\u00e3 t\u1ea1o b\u1ea3ng v\u00e0 th\u00eam d\u1eef li\u1ec7u trong 2 b\u00e0i vi\u1ebft tr\u01b0\u1edbc, b\u00e2y gi\u1edd ch\u00fang ta s\u1ebd s\u1eed d\u1ee5ng view \u0111\u1ec3 hi\u1ec3n th\u1ecb nh\u1eefng d\u1eef li\u1ec7u \u0111\u00f3 tr\u00ean trang store.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">B\u01b0\u1edbc 1: T\u1ea1o Controller.<\/h2>\n\n\n\n<p>C\u00e1c b\u1ea1n t\u1ea1o <strong>Magetop\/Helloworld\/Controller\/Learning\/View.php<\/strong> v\u1edbi \u0111o\u1ea1n code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n&lt;?php\nnamespace Magetop\\Helloworld\\Controller\\Learning;\n\nuse Magento\\Framework\\App\\Action\\Action;\nuse Magento\\Framework\\View\\Result\\PageFactory;\nuse Magento\\Framework\\App\\Action\\Context;\n\nclass View extends Action\n{\n    protected $pageFactory;\n\n    public function __construct(Context $context, PageFactory $pageFactory)\n    {\n        parent::__construct($context);\n        $this-&gt;pageFactory = $pageFactory;\n    }\n\n    public function execute()\n    {\n        $resultPage = $this-&gt;pageFactory-&gt;create();\n        \/\/ T\u1ea1o ti\u00eau \u0111\u1ec1\n        $resultPage-&gt;getConfig()-&gt;getTitle()-&gt;set(__('Danh s\u00e1ch b\u00e0i vi\u1ebft'));\n\n        \/\/ T\u1ea1o breadcrumb\n        \/** @var \\Magento\\Theme\\Block\\Html\\Breadcrumbs *\/\n        if($resultPage-&gt;getLayout()-&gt;getBlock('breadcrumbs')) {\n            $breadcrumbs = $resultPage-&gt;getLayout()-&gt;getBlock('breadcrumbs');\n            $breadcrumbs-&gt;addCrumb('TrangChu',\n                &#x5B;\n                    'label' =&gt; __('Home'),\n                    'title' =&gt; __('TrangChu'),\n                    'link' =&gt; $this-&gt;_url-&gt;getUrl('')\n                ]\n            );\n            $breadcrumbs-&gt;addCrumb('Blog',\n                &#x5B;\n                    'label' =&gt; __('Posts'),\n                    'title' =&gt; __('BaiViet')\n                ]\n            );\n        }\n        return $resultPage;\n    }\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">B\u01b0\u1edbc 2: T\u1ea1o Block.<\/h2>\n\n\n\n<p>T\u1ea1o <strong>Magetop\/Helloworld\/Block\/Bloglist.php<\/strong> v\u1edbi \u0111o\u1ea1n code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n&lt;?php\nnamespace Magetop\\Helloworld\\Block;\n\nuse Magento\\Framework\\View\\Element\\Template;\nuse Magetop\\Helloworld\\Model\\ResourceModel\\Posts\\CollectionFactory;\n\nclass Bloglist extends Template\n{\n    protected $PostsFactory;\n\n    public function __construct(Template\\Context $context, CollectionFactory $postsFactory)\n    {\n        $this-&gt;PostsFactory = $postsFactory;\n        parent::__construct($context);\n    }\n\n    public function GetBlog(){\n        $blog = $this-&gt;PostsFactory-&gt;create();\n        return $blog;\n    }\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">B\u01b0\u1edbc 3: T\u1ea1o view.<\/h2>\n\n\n\n<p><strong>B3.1:<\/strong> Tr\u01b0\u1edbc ti\u00ean t\u1ea1o file css <strong>Magetop\/Helloworld\/view\/frontend\/web\/css\/styleTable.css<\/strong> b\u00ean trong c\u00f3 \u0111o\u1ea1n code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\ntable, th, td {\n    border: 1px solid black;\n    border-collapse: collapse;\n}\n<\/pre><\/div>\n\n\n<p><strong>B3.2:<\/strong> T\u1ea1o layout <strong>Magetop\/Helloworld\/view\/frontend\/layout\/hello_learning_view.xml<\/strong>, t\u00ean c\u1ee7a file xml ph\u1ea3i d\u1ef1a theo quy t\u1eafc <strong>routes_controller_action<\/strong>. Trong file <strong>hello_learning_view.xml<\/strong> c\u00f3 \u0111o\u1ea1n code sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;\n&lt;!--\n\/**\n * hello_learning_view\n *\n * @copyright Copyright \u00a9 2020 MAGETOP. All rights reserved.\n * @author    info@magetop.com\n *\/\n--&gt;\n&lt;page xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; layout=&quot;1column&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:View\/Layout\/etc\/page_configuration.xsd&quot;&gt;\n    &lt;head&gt;\n        &lt;css src=&quot;Magetop_Helloworld::css\/styleTable.css&quot;\/&gt;\n    &lt;\/head&gt;\n    &lt;body&gt;\n        &lt;referenceContainer name=&quot;content&quot;&gt;\n            &lt;block class=&quot;Magetop\\Helloworld\\Block\\Bloglist&quot; name=&quot;hello_learning_view&quot; template=&quot;Magetop_Helloworld::blogs.phtml&quot;\/&gt;\n        &lt;\/referenceContainer&gt;\n    &lt;\/body&gt;\n&lt;\/page&gt;\n<\/pre><\/div>\n\n\n<p><strong>B3.3:<\/strong> T\u1ea1o template, c\u00e1c b\u1ea1n ch\u00fa \u00fd \u0111\u1ec3 file \u1edf \u0111\u1ecbnh d\u1ea1ng phtml <strong>Magetop\/Helloworld\/view\/frontend\/templates\/blogs.phtml<\/strong> v\u1edbi \u0111o\u1ea1n code:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; auto-links: false; title: ; notranslate\" title=\"\">\n&lt;?php\n    $posts = $block-&gt;GetBlog();\n?&gt;\n\n&lt;table&gt;\n  &lt;tr&gt;\n        &lt;th class=&quot;blog-id&quot;&gt;Id&lt;\/th&gt;\n        &lt;th class=&quot;blog-name&quot;&gt;Ti\u00eau \u0110\u1ec1&lt;\/th&gt;\n        &lt;th&gt;Summary&lt;\/th&gt;\n        &lt;th&gt;N\u1ed9i Dung&lt;\/th&gt;\n  &lt;\/tr&gt;\n    &lt;?php\n        foreach ($posts as $data){\n            echo '&lt;tr&gt;\n                    &lt;td&gt;'.$data-&gt;getId().'&lt;\/td&gt;\n                    &lt;td&gt;'.$data-&gt;getTitle().'&lt;\/td&gt;\n                    &lt;td&gt;'.$data-&gt;getSummary().'&lt;\/td&gt;\n                    &lt;td&gt;'.$data-&gt;getDescription().'&lt;\/td&gt;\n                  &lt;\/tr&gt;';\n        }\n    ?&gt;\n&lt;\/table&gt;\n<\/pre><\/div>\n\n\n<p>Sau khi t\u1ea1o h\u1ebft xong c\u00e1c b\u1ea1n nh\u1edb l\u01b0u l\u1ea1i v\u00e0 ch\u1ea1y 2 l\u1ec7nh: <\/p>\n\n\n\n<ul class=\"wp-block-list\"><li><code><strong>php bin\/magento setup:upgrade<\/strong><\/code><\/li><li><code><strong>php bin\/magento setup:static-content:deploy -f<\/strong><em>&nbsp;<\/em><\/code><\/li><\/ul>\n\n\n\n<p>Ch\u1ea1y xong truy c\u1eadp theo \u0111\u1ecba ch\u1ec9 <strong>ten-mien.com\/hello\/learning\/view<\/strong> \u0111\u1ec3 ki\u1ec3m tra.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1708\" height=\"758\" data-attachment-id=\"2201\" data-permalink=\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/view-showblog-magento-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?fit=1708%2C758&amp;ssl=1\" data-orig-size=\"1708,758\" data-comments-opened=\"1\" data-image-meta=\"{&quot;aperture&quot;:&quot;0&quot;,&quot;credit&quot;:&quot;&quot;,&quot;camera&quot;:&quot;&quot;,&quot;caption&quot;:&quot;&quot;,&quot;created_timestamp&quot;:&quot;0&quot;,&quot;copyright&quot;:&quot;&quot;,&quot;focal_length&quot;:&quot;0&quot;,&quot;iso&quot;:&quot;0&quot;,&quot;shutter_speed&quot;:&quot;0&quot;,&quot;title&quot;:&quot;&quot;,&quot;orientation&quot;:&quot;0&quot;}\" data-image-title=\"view-showblog-magento-2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?fit=300%2C133&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?fit=800%2C355&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?fit=800%2C355&amp;ssl=1\" alt=\"S\u1eed d\u1ee5ng view hi\u1ec3n th\u1ecb database l\u00ean trang store Magento 2\" class=\"wp-image-2201\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?w=1708&amp;ssl=1 1708w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?resize=300%2C133&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?resize=1024%2C454&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?resize=768%2C341&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?resize=1536%2C682&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/view-showblog-magento-2.jpg?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>D\u1eef li\u1ec7u hi\u1ec3n th\u1ecb tr\u00ean trang \u0111\u00fang v\u1edbi d\u1eef li\u1ec7u ch\u00fang ta \u0111\u00e3 th\u00eam v\u00e0o.<\/p>\n\n\n\n<p>V\u1eady l\u00e0 m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn xong c\u00e1ch s\u1eed d\u1ee5ng view \u0111\u1ec3 hi\u1ec3n th\u1ecb database l\u00ean trang store Magento 2.<\/p>\n\n\n\n<p>\u0110\u1ec3 d\u1ec5 hi\u1ec3u h\u01a1n c\u00e1c b\u1ea1n n\u00ean \u0111\u1ecdc c\u00e1c b\u00e0i vi\u1ebft tr\u01b0\u1edbc c\u1ee7a m\u00ecnh: <a rel=\"noreferrer noopener\" href=\"https:\/\/www.magetop.com\/blog\/model-trong-magento-2\/\" target=\"_blank\">H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2 (ph\u1ea7n 3)<\/a>.<\/p>\n\n\n\n<p>\u1ede b\u00e0i vi\u1ebft ti\u1ebfp theo m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n <a rel=\"noreferrer noopener\" href=\"https:\/\/www.magetop.com\/blog\/tao-menu-admin-module-magento-2\/\" target=\"_blank\">c\u00e1ch t\u1ea1o menu admin cho module trong Magento 2<\/a>.<\/p>\n\n\n\n<p>C\u1ea3m \u01a1n c\u00e1c b\u1ea1n \u0111\u00e3 \u0111\u1ecdc b\u00e0i vi\u1ebft.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng c\u1ee7a view.<\/p>\n","protected":false},"author":108,"featured_media":2205,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[226],"tags":[304,434,449,446,450,447,448],"class_list":["post-2197","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vn","tag-huong-dan-code-module-magento-2","tag-huong-dan-lap-trinh-magento-2","tag-huong-dan-lap-trinh-module-magento-2","tag-huong-dan-lap-trinh-module-magento-2-tao-view","tag-huong-dan-lap-trinh-module-phan-4","tag-lap-trinh-module-magento-2-tao-view","tag-view-trong-magento-2"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.9 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module: T\u1ea1o view trong Magento 2 - Magetop Blog<\/title>\n<meta name=\"description\" content=\"Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng v\u00e0 s\u1eed d\u1ee5ng c\u1ee7a view.\" \/>\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.magetop.com\/blog\/tao-view-trong-magento-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module: T\u1ea1o view trong Magento 2 - Magetop Blog\" \/>\n<meta property=\"og:description\" content=\"Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng v\u00e0 s\u1eed d\u1ee5ng c\u1ee7a view.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Magetop Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/MagetopStore\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-15T10:33:33+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-22T09:19:49+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1\" \/>\n\t<meta property=\"og:image:width\" content=\"750\" \/>\n\t<meta property=\"og:image:height\" content=\"405\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Callula Huy\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:site\" content=\"@MagetopStore\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Callula Huy\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/\"},\"author\":{\"name\":\"Callula Huy\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\"},\"headline\":\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view\",\"datePublished\":\"2020-05-15T10:33:33+00:00\",\"dateModified\":\"2020-05-22T09:19:49+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/\"},\"wordCount\":469,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1\",\"keywords\":[\"H\u01b0\u1edbng d\u1eabn code module magento 2\",\"h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh Magento 2\",\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2\",\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view\",\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module ph\u1ea7n 4\",\"l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view\",\"view trong Magento 2\"],\"articleSection\":[\"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/\",\"name\":\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module: T\u1ea1o view trong Magento 2 - Magetop Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1\",\"datePublished\":\"2020-05-15T10:33:33+00:00\",\"dateModified\":\"2020-05-22T09:19:49+00:00\",\"description\":\"Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng v\u00e0 s\u1eed d\u1ee5ng c\u1ee7a view.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1\",\"width\":750,\"height\":405,\"caption\":\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2 t\u1ea1o view\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.magetop.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"name\":\"Magetop Blog\",\"description\":\"Exploring Magento Tips, Tricks, and Trends\",\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.magetop.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\",\"name\":\"Magetop.com\",\"url\":\"https:\/\/www.magetop.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1\",\"width\":475,\"height\":475,\"caption\":\"Magetop.com\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/MagetopStore\",\"https:\/\/x.com\/MagetopStore\",\"https:\/\/www.linkedin.com\/company\/magetop\",\"https:\/\/www.pinterest.com\/magetop\",\"https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\",\"name\":\"Callula Huy\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g\",\"caption\":\"Callula Huy\"},\"description\":\"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.\",\"sameAs\":[\"http:\/\/magetop.com\"],\"url\":\"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module: T\u1ea1o view trong Magento 2 - Magetop Blog","description":"Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng v\u00e0 s\u1eed d\u1ee5ng c\u1ee7a view.","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.magetop.com\/blog\/tao-view-trong-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module: T\u1ea1o view trong Magento 2 - Magetop Blog","og_description":"Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng v\u00e0 s\u1eed d\u1ee5ng c\u1ee7a view.","og_url":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2020-05-15T10:33:33+00:00","article_modified_time":"2020-05-22T09:19:49+00:00","og_image":[{"width":750,"height":405,"url":"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1","type":"image\/png"}],"author":"Callula Huy","twitter_card":"summary_large_image","twitter_creator":"@MagetopStore","twitter_site":"@MagetopStore","twitter_misc":{"Written by":"Callula Huy","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/"},"author":{"name":"Callula Huy","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9"},"headline":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view","datePublished":"2020-05-15T10:33:33+00:00","dateModified":"2020-05-22T09:19:49+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/"},"wordCount":469,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1","keywords":["H\u01b0\u1edbng d\u1eabn code module magento 2","h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh Magento 2","H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2","H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view","H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module ph\u1ea7n 4","l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view","view trong Magento 2"],"articleSection":["Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/","url":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/","name":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module: T\u1ea1o view trong Magento 2 - Magetop Blog","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1","datePublished":"2020-05-15T10:33:33+00:00","dateModified":"2020-05-22T09:19:49+00:00","description":"Trong b\u00e0i 4 c\u1ee7a lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, ch\u00fang ta s\u1ebd c\u00f9ng nhau xem c\u00e1ch ho\u1ea1t \u0111\u1ed9ng v\u00e0 s\u1eed d\u1ee5ng c\u1ee7a view.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1","width":750,"height":405,"caption":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2 t\u1ea1o view"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.magetop.com\/blog\/"},{"@type":"ListItem","position":2,"name":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view"}]},{"@type":"WebSite","@id":"https:\/\/www.magetop.com\/blog\/#website","url":"https:\/\/www.magetop.com\/blog\/","name":"Magetop Blog","description":"Exploring Magento Tips, Tricks, and Trends","publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.magetop.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.magetop.com\/blog\/#organization","name":"Magetop.com","url":"https:\/\/www.magetop.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/11\/logo.png?fit=475%2C475&ssl=1","width":475,"height":475,"caption":"Magetop.com"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/MagetopStore","https:\/\/x.com\/MagetopStore","https:\/\/www.linkedin.com\/company\/magetop","https:\/\/www.pinterest.com\/magetop","https:\/\/www.youtube.com\/channel\/UCXoiJsz88OfPmwa8QpUkwOA"]},{"@type":"Person","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9","name":"Callula Huy","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/321e837578b99a75c9d7f5c884e62e11b3b6df2b5934726e98fd365f580393c7?s=96&d=mm&r=g","caption":"Callula Huy"},"description":"Callula is the Marketing Executive at Magetop. With more than 5 years of copywriting under his belt, Callula is into creating valuable content that is straight to the point. Life student. Workaholic. Foreign languages and traveling aficionado.","sameAs":["http:\/\/magetop.com"],"url":"https:\/\/www.magetop.com\/blog\/author\/callula-huy\/"}]}},"jetpack_featured_media_url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-magento-2.png?fit=750%2C405&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-zr","jetpack-related-posts":[{"id":2256,"url":"https:\/\/www.magetop.com\/blog\/tao-menu-admin-module-magento-2\/","url_meta":{"origin":2197,"position":0},"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o menu admin module trong Magento 2","author":"Callula Huy","date":"May 22, 2020","format":false,"excerpt":"Ti\u1ebfp t\u1ee5c v\u1edbi lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2, \u1edf b\u00e0i h\u01b0\u1edbng d\u1eabn ph\u1ea7n 5 m\u00ecnh s\u1ebd gi\u1edbi thi\u1ec7u v\u1edbi c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o menu admin cho module.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn t\u1ea1o menu admin module trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-menu-admin-module-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-menu-admin-module-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-menu-admin-module-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-menu-admin-module-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2376,"url":"https:\/\/www.magetop.com\/blog\/tao-system-xml-va-helper\/","url_meta":{"origin":2197,"position":1},"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2","author":"Callula Huy","date":"June 12, 2020","format":false,"excerpt":"\u1ede b\u00e0i vi\u1ebft tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o ra menu cho module, h\u00f4m nay m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper trong Magento 2.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn t\u1ea1o system.xml v\u00e0 s\u1eed d\u1ee5ng Helper","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/06\/H%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-t%E1%BA%A1o-system.xml-v%C3%A0-s%E1%BB%AD-d%E1%BB%A5ng-Helper.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2100,"url":"https:\/\/www.magetop.com\/blog\/model-trong-magento-2\/","url_meta":{"origin":2197,"position":2},"title":"H\u01b0\u1edbng d\u1eabn d\u00f9ng Model trong Magento 2","author":"Callula Huy","date":"May 12, 2020","format":false,"excerpt":"Ti\u1ebfp t\u1ee5c series h\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module, trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch s\u1eed d\u1ee5ng Model trong Magento 2 \u0111\u1ec3 truy xu\u1ea5t d\u1eef li\u1ec7u t\u1eeb database.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"h\u01b0\u1edbng d\u1eabn s\u1eed d\u1ee5ng model trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-s%E1%BB%AD-d%E1%BB%A5ng-model-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-s%E1%BB%AD-d%E1%BB%A5ng-model-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-s%E1%BB%AD-d%E1%BB%A5ng-model-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/h%C6%B0%E1%BB%9Bng-d%E1%BA%ABn-s%E1%BB%AD-d%E1%BB%A5ng-model-trong-Magento-2.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2014,"url":"https:\/\/www.magetop.com\/blog\/cong-cu-viet-code-magento-2\/","url_meta":{"origin":2197,"position":3},"title":"Chia s\u1ebb kinh nghi\u1ec7m: C\u00f4ng c\u1ee5 h\u1ed7 tr\u1ee3 vi\u1ebft code Magento 2 t\u1ed1t nh\u1ea5t","author":"Callula Huy","date":"May 18, 2020","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd chia s\u1ebb cho c\u00e1c b\u1ea1n m\u1eb9o \u0111\u1ec3 c\u00f3 \u0111\u01b0\u1ee3c c\u00f4ng c\u1ee5 h\u1ed7 tr\u1ee3 gi\u00fap qu\u00e1 tr\u00ecnh code module Magento 2 \u0111\u01b0\u1ee3c d\u1ec5 d\u00e0ng h\u01a1n.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"Ph\u1ea7n m\u1ec1m h\u1ed7 tr\u1ee3 l\u1eadp tr\u00ecnh module Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/Ph%E1%BA%A7n-m%E1%BB%81m-h%E1%BB%97-tr%E1%BB%A3-l%E1%BA%ADp-tr%C3%ACnh-module-Magento-2.png?fit=750%2C321&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/Ph%E1%BA%A7n-m%E1%BB%81m-h%E1%BB%97-tr%E1%BB%A3-l%E1%BA%ADp-tr%C3%ACnh-module-Magento-2.png?fit=750%2C321&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/Ph%E1%BA%A7n-m%E1%BB%81m-h%E1%BB%97-tr%E1%BB%A3-l%E1%BA%ADp-tr%C3%ACnh-module-Magento-2.png?fit=750%2C321&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/Ph%E1%BA%A7n-m%E1%BB%81m-h%E1%BB%97-tr%E1%BB%A3-l%E1%BA%ADp-tr%C3%ACnh-module-Magento-2.png?fit=750%2C321&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":4788,"url":"https:\/\/www.magetop.com\/blog\/cach-thiet-lap-rss-feed-trong-magento-2\/","url_meta":{"origin":2197,"position":4},"title":"H\u01b0\u1edbng d\u1eabn c\u00e1ch thi\u1ebft l\u1eadp RSS Feed trong Magento 2","author":"Callula Huy","date":"February 3, 2021","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch thi\u1ebft l\u1eadp RSS Feed trong Magento 2.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn c\u00e1ch thi\u1ebft l\u1eadp RSS Feed trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/02\/Huong-dan-cach-thiet-lap-RSS-Feed-trong-Magento-2.jpg?fit=750%2C402&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/02\/Huong-dan-cach-thiet-lap-RSS-Feed-trong-Magento-2.jpg?fit=750%2C402&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/02\/Huong-dan-cach-thiet-lap-RSS-Feed-trong-Magento-2.jpg?fit=750%2C402&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/02\/Huong-dan-cach-thiet-lap-RSS-Feed-trong-Magento-2.jpg?fit=750%2C402&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":5842,"url":"https:\/\/www.magetop.com\/blog\/tao-trang-cms-trong-magento-2\/","url_meta":{"origin":2197,"position":5},"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o trang CMS m\u1edbi trong Magento 2","author":"Callula Huy","date":"April 12, 2021","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch t\u1ea1o trang CMS m\u1edbi trong Magento 2.","rel":"","context":"In &quot;Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t&quot;","block_context":{"text":"Magento 2 H\u01b0\u1edbng D\u1eabn Ti\u1ebfng Vi\u1ec7t","link":"https:\/\/www.magetop.com\/blog\/vn\/"},"img":{"alt_text":"H\u01b0\u1edbng d\u1eabn t\u1ea1o trang CMS m\u1edbi trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/04\/Huong-dan-tao-trang-CMS-moi-trong-Magento-2.png?fit=750%2C417&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/04\/Huong-dan-tao-trang-CMS-moi-trong-Magento-2.png?fit=750%2C417&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/04\/Huong-dan-tao-trang-CMS-moi-trong-Magento-2.png?fit=750%2C417&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/04\/Huong-dan-tao-trang-CMS-moi-trong-Magento-2.png?fit=750%2C417&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/2197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/users\/108"}],"replies":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/comments?post=2197"}],"version-history":[{"count":5,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/2197\/revisions"}],"predecessor-version":[{"id":2268,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/2197\/revisions\/2268"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/2205"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=2197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=2197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=2197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}