{"id":1545,"date":"2020-03-20T10:30:22","date_gmt":"2020-03-20T10:30:22","guid":{"rendered":"https:\/\/www.magetop.com\/blog\/?p=1545"},"modified":"2020-05-15T08:21:00","modified_gmt":"2020-05-15T08:21:00","slug":"tao-table-database-trong-magento-2","status":"publish","type":"post","link":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2"},"content":{"rendered":"\n<p>\u1ede b\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch \u0111\u1ec3 t\u1ea1o ra 1 module Magento 2. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">B\u01b0\u1edbc 1: T\u1ea1o Module.<\/h2>\n\n\n\n<p>\u0110\u1ea7u ti\u00ean c\u00e1c b\u1ea1n c\u1ea7n t\u1ea1o 1 module b\u1eb1ng c\u00e1ch t\u1ea1o file module.xml v\u00e0 registration.php, m\u00ecnh \u0111\u00e3 c\u00f3 h\u01b0\u1edbng d\u1eabn \u1edf b\u00e0i vi\u1ebft tr\u01b0\u1edbc c\u00e1c b\u1ea1n c\u00f3 th\u1ec3 tham kh\u1ea3o: <a rel=\"noreferrer noopener\" aria-label=\"H\u01b0\u1edbng d\u1eabn t\u1ea1o module \u0111\u01a1n gi\u1ea3n trong Magento 2 (opens in a new tab)\" href=\"https:\/\/www.magetop.com\/blog\/tao-module-don-gian-magento-2\/\" target=\"_blank\">H\u01b0\u1edbng d\u1eabn t\u1ea1o module \u0111\u01a1n gi\u1ea3n trong Magento 2<\/a><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">B\u01b0\u1edbc 2: T\u1ea1o file InstallSchema.php.<\/h2>\n\n\n\n<p>C\u00e1c b\u1ea1n t\u1ea1o <strong>InstallSchema.php<\/strong> theo \u0111\u01b0\u1eddng d\u1eabn <strong>app\\code\\Magetop\\Helloworld\\Setup<\/strong> v\u1edbi \u0111o\u1ea1n code sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;?php\n\nnamespace Magetop\\Helloworld\\Setup;\n\nuse Magento\\Framework\\Setup\\InstallSchemaInterface;\nuse Magento\\Framework\\Setup\\ModuleContextInterface;\nuse Magento\\Framework\\Setup\\SchemaSetupInterface;\nuse Magento\\Framework\\DB\\Ddl\\Table;\n\nclass InstallSchema implements InstallSchemaInterface\n{\n    public function install(SchemaSetupInterface $setup, ModuleContextInterface $context)\n    {\n        $setup-&gt;startSetup();\n\n        $tableName = $setup-&gt;getTable('magetop_hello');\n        \/\/ Ki\u1ec3m tra xem t\u00ean b\u1ea3ng \u0111\u00e3 t\u1ed3n t\u1ea1i hay ch\u01b0a, n\u1ebfu ch\u01b0a th\u00ec t\u1ea1o b\u1ea3ng\n        if ($setup-&gt;getConnection()-&gt;isTableExists($tableName) != true) {\n            $table = $setup-&gt;getConnection()-&gt;newTable($tableName)\n                -&gt;addColumn(\n                    'id',\n                    Table::TYPE_INTEGER,\n                    null,\n                    &#x5B;\n                        'identity' =&gt; true,\n                        'unsigned' =&gt; true,\n                        'nullable' =&gt; false,\n                        'primary' =&gt; true\n                    ],\n                    'ID'\n                )\n                -&gt;addColumn(\n                    'title',\n                    Table::TYPE_TEXT,\n                    null,\n                    &#x5B;'nullable' =&gt; false, 'default' =&gt; ''],\n                    'Title'\n                )\n                -&gt;addColumn(\n                    'summary',\n                    Table::TYPE_TEXT,\n                    null,\n                    &#x5B;'nullable' =&gt; false, 'default' =&gt; ''],\n                    'Summary'\n                )\n                -&gt;addColumn(\n                    'description',\n                    Table::TYPE_TEXT,\n                    null,\n                    &#x5B;'nullable' =&gt; false, 'default' =&gt; ''],\n                    'Description'\n                )\n                -&gt;addColumn(\n                  'status',\n                  Table::TYPE_SMALLINT,\n                  null,\n                  &#x5B;\n                      'nullable' =&gt; false, 'default' =&gt; '0'\n                  ],\n                  'Status'\n              )\n              -&gt;addColumn(\n                  'create_at',\n                  Table::TYPE_DATETIME,\n                  null,\n                  &#x5B;\n                      'nullable' =&gt; false\n                  ],\n                  'Create_at'\n              )\n                -&gt;setComment('Magetop Hello')\n                -&gt;setOption('type', 'InnoDB')\n                -&gt;setOption('charset', 'utf8');\n            $setup-&gt;getConnection()-&gt;createTable($table);\n        }\n\n        $setup-&gt;endSetup();\n    }\n}\n<\/pre><\/div>\n\n\n<p>C\u00e1c b\u1ea1n c\u00f3 th\u1ec3 ch\u1ec9nh s\u1eeda v\u00e0 t\u1ea1o b\u1ea3ng theo \u00fd c\u1ee7a m\u00ecnh.Khi t\u1ea1o <strong>InstallSchema.php<\/strong> xong n\u1ebfu b\u1ea1n ch\u01b0a k\u00edch ho\u1ea1t module th\u00ec ch\u1ec9 c\u1ea7n k\u00edch ho\u1ea1t l\u00e0 s\u1ebd t\u1ea1o ra b\u1ea3ng database v\u00ec Magento s\u1ebd t\u1ef1 \u0111\u1ed9ng ch\u1ea1y file n\u00e0y khi c\u00e0i \u0111\u1eb7t l\u1ea7n \u0111\u1ea7u.<\/p>\n\n\n\n<p>C\u00f2n n\u1ebfu b\u1ea1n \u0111\u00e3 c\u00e0i \u0111\u1eb7t module tr\u01b0\u1edbc r\u1ed3i th\u00ec b\u1ea1n c\u1ea7n t\u0103ng <strong>setup_version<\/strong> trong file <strong>module.xml<\/strong> l\u00ean v\u00e0 t\u1ea1o file <strong>UpgradeSchema.php<\/strong>.<\/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 * module\n *\n * @copyright Copyright \u00a9 2020 MAGETOP. All rights reserved.\n * @author    info@magetop.com\n *\/\n--&gt;\n&lt;config xmlns:xsi=&quot;http:\/\/www.w3.org\/2001\/XMLSchema-instance&quot; xsi:noNamespaceSchemaLocation=&quot;urn:magento:framework:Module\/etc\/module.xsd&quot;&gt;\n    &lt;module name=&quot;Magetop_Helloworld&quot; setup_version=&quot;1.0.1&quot;&gt;\n    &lt;\/module&gt;\n&lt;\/config&gt;\n\n<\/pre><\/div>\n\n\n<p>N\u1ebfu c\u00e1c b\u1ea1n theo d\u00f5i b\u00e0i tr\u01b0\u1edbc c\u1ee7a m\u00ecnh r\u1ed3i th\u00ec s\u1ebd bi\u1ebft m\u00ecnh \u0111\u00e3 t\u0103ng t\u1eeb setup_version=&#8221;1.0.0&#8243; l\u00ean th\u00e0nh setup_version=&#8221;1.0.1&#8243;.<\/p>\n\n\n\n<p>Sau khi t\u0103ng version xong c\u00e1c b\u1ea1n t\u1ea1o file <strong>UpgradeSchema.php<\/strong>. v\u1edbi file n\u00e0y c\u00e1c b\u1ea1n c\u0169ng c\u00f3 th\u1ec3 t\u1ea1o th\u00eam c\u1ed9t v\u00e0o b\u1ea3ng c\u1ee7a m\u00ecnh. \u0111o\u1ea1n code nh\u01b0 sau:<\/p>\n\n\n<div class=\"wp-block-syntaxhighlighter-code \"><pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n&lt;?php\nnamespace Magetop\\Helloworld\\Setup;\n\nuse Magento\\Framework\\DB\\Ddl\\Table;\nuse Magento\\Framework\\Setup\\UpgradeSchemaInterface;\nuse Magento\\Framework\\Setup\\ModuleContextInterface;\nuse Magento\\Framework\\Setup\\SchemaSetupInterface;\n\n\nclass UpgradeSchema implements UpgradeSchemaInterface\n{\n    public function upgrade(SchemaSetupInterface $setup, ModuleContextInterface $context)\n    {\n        $setup-&gt;startSetup();\n        $tableName = $setup-&gt;getTable('magetop_hello');\n        if (version_compare($context-&gt;getVersion(), '1.0.1', '&lt;')) {\n             if ($setup-&gt;getConnection()-&gt;isTableExists($tableName) != true){\n                 $table = $setup-&gt;getConnection()-&gt;newTable($tableName)\n                     -&gt;addColumn(\n                         'id',\n                         Table::TYPE_INTEGER,\n                         null,\n                         &#x5B;\n                             'identity' =&gt; true,\n                             'unsigned' =&gt; true,\n                             'nullable' =&gt; false,\n                             'primary' =&gt; true\n                         ],\n                         'ID'\n                     )\n                     -&gt;addColumn(\n                         'title',\n                         Table::TYPE_TEXT,\n                         null,\n                         &#x5B;'nullable' =&gt; false, 'default' =&gt; ''],\n                         'Title'\n                     )\n                     -&gt;addColumn(\n                         'summary',\n                         Table::TYPE_TEXT,\n                         null,\n                         &#x5B;'nullable' =&gt; false, 'default' =&gt; ''],\n                         'Summary'\n                     )\n                     -&gt;addColumn(\n                         'description',\n                         Table::TYPE_TEXT,\n                         null,\n                         &#x5B;'nullable' =&gt; false, 'default' =&gt; ''],\n                         'Description'\n                     )\n                     -&gt;addColumn(\n                         'status',\n                         Table::TYPE_SMALLINT,\n                         null,\n                         &#x5B;\n                             'nullable' =&gt; false, 'default' =&gt; '0'\n                         ],\n                         'Status'\n                     )\n                     -&gt;addColumn(\n                         'create_at',\n                         Table::TYPE_DATETIME,\n                         null,\n                         &#x5B;\n                             'nullable' =&gt; false\n                         ],\n                         'Create_at'\n                     )\n                     -&gt;setComment('Magetop Hello')\n                     -&gt;setOption('type', 'InnoDB')\n                     -&gt;setOption('charset', 'utf8');\n                 $setup-&gt;getConnection()-&gt;createTable($table);\n             }\n        }\n        \/\/ Th\u00eam c\u1ed9t v\u00e0o b\u1ea3ng\n        if(version_compare($context-&gt;getVersion(),'1.0.1','&lt;')){\n            if ($setup-&gt;getConnection()-&gt;isTableExists($tableName) == true){\n                $column = &#x5B;\n                    'image' =&gt; &#x5B;\n                        'type' =&gt; Table::TYPE_TEXT,\n                        &#x5B;'nullable' =&gt; true, 'default' =&gt; ''],\n                        'comment' =&gt; 'Image',\n                    ],\n                ];\n                foreach ($column as $name =&gt; $definition){\n                    $setup-&gt;getConnection()-&gt;addColumn($tableName, $name, $definition);\n                }\n            }\n        }\n\n        $setup-&gt;endSetup();\n    }\n}\n<\/pre><\/div>\n\n\n<h2 class=\"wp-block-heading\">B\u01b0\u1edbc 3: Ch\u1ea1y l\u1ec7nh.<\/h2>\n\n\n\n<p>Ho\u00e0n th\u00e0nh b1 b2 xong c\u00e1c b\u1ea1n ch\u1ea1y l\u1ec7nh: <strong>php bin\/magento setup:upgrade<\/strong>.<\/p>\n\n\n\n<p>Sau \u0111\u00f3 c\u00e1c b\u1ea1n v\u00e0o phpmyadmin ki\u1ec3m tra.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1755\" height=\"677\" data-attachment-id=\"1605\" data-permalink=\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/phpmyadmin-1\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?fit=1755%2C677&amp;ssl=1\" data-orig-size=\"1755,677\" 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=\"phpmyadmin-1\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?fit=300%2C116&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?fit=800%2C309&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?fit=800%2C309&amp;ssl=1\" alt=\"phpmyadmin\" class=\"wp-image-1605\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?w=1755&amp;ssl=1 1755w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?resize=300%2C116&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?resize=1024%2C395&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?resize=768%2C296&amp;ssl=1 768w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?resize=1536%2C593&amp;ssl=1 1536w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-1.png?w=1600&amp;ssl=1 1600w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1439\" height=\"585\" data-attachment-id=\"1606\" data-permalink=\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/phpmyadmin-2\/\" data-orig-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-2.png?fit=1439%2C585&amp;ssl=1\" data-orig-size=\"1439,585\" 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=\"phpmyadmin-2\" data-image-description=\"\" data-image-caption=\"\" data-medium-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-2.png?fit=300%2C122&amp;ssl=1\" data-large-file=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-2.png?fit=800%2C325&amp;ssl=1\" src=\"https:\/\/i2.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-2.png?fit=800%2C325&amp;ssl=1\" alt=\"phpmyadmin\" class=\"wp-image-1606\" srcset=\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-2.png?w=1439&amp;ssl=1 1439w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-2.png?resize=300%2C122&amp;ssl=1 300w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-2.png?resize=1024%2C416&amp;ssl=1 1024w, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/phpmyadmin-2.png?resize=768%2C312&amp;ssl=1 768w\" sizes=\"auto, (max-width: 800px) 100vw, 800px\" \/><\/figure>\n\n\n\n<p>V\u1eady l\u00e0 m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng xong c\u00e1ch t\u1ea1o table database trong Magento 2<\/p>\n\n\n\n<p>C\u1ea3m \u01a1n c\u00e1c b\u1ea1n \u0111\u00e3 \u0111\u1ecdc b\u00e0i vi\u1ebft.<\/p>\n\n\n\n<p>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\/model-trong-magento-2\/\" target=\"_blank\">c\u00e1ch s\u1eed d\u1ee5ng Model trong Magento 2<\/a>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Ti\u1ebfp n\u1ed1i lo\u1ea1t b\u00e0i h\u01b0\u1edbng d\u1eabn code module Magento 2, Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.<\/p>\n","protected":false},"author":108,"featured_media":1611,"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":[303,434,436,332,330,331,329],"class_list":["post-1545","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-vn","tag-code-module-magento-2","tag-huong-dan-lap-trinh-magento-2","tag-huong-dan-lap-trinh-module-phan-2","tag-huong-dan-magento-2","tag-huong-dan-tao-table-database-trong-magento-2","tag-tao-bang-database-trong-magento-2","tag-tao-table-database-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 t\u1ea1o table database trong Magento 2 - Magetop Blog<\/title>\n<meta name=\"description\" content=\"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch \u0111\u1ec3 t\u1ea1o ra 1 module Magento 2. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.\" \/>\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-table-database-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 t\u1ea1o table database trong Magento 2 - Magetop Blog\" \/>\n<meta property=\"og:description\" content=\"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch \u0111\u1ec3 t\u1ea1o ra 1 module Magento 2. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.magetop.com\/blog\/tao-table-database-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-03-20T10:30:22+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-15T08:21:00+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.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-table-database-trong-magento-2\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/\"},\"author\":{\"name\":\"Callula Huy\",\"@id\":\"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9\"},\"headline\":\"H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2\",\"datePublished\":\"2020-03-20T10:30:22+00:00\",\"dateModified\":\"2020-05-15T08:21:00+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/\"},\"wordCount\":431,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1\",\"keywords\":[\"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 ph\u1ea7n 2\",\"h\u01b0\u1edbng d\u1eabn magento 2\",\"H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2\",\"t\u1ea1o b\u1ea3ng database trong magento 2\",\"t\u1ea1o table database 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-table-database-trong-magento-2\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/\",\"url\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/\",\"name\":\"H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2 - Magetop Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1\",\"datePublished\":\"2020-03-20T10:30:22+00:00\",\"dateModified\":\"2020-05-15T08:21:00+00:00\",\"description\":\"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch \u0111\u1ec3 t\u1ea1o ra 1 module Magento 2. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#primaryimage\",\"url\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1\",\"contentUrl\":\"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1\",\"width\":750,\"height\":405,\"caption\":\"B\u00e0i 2: h\u01b0\u1edbng d\u1eabn t\u1ea1o table database Magento 2\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.magetop.com\/blog\/tao-table-database-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 t\u1ea1o table database trong Magento 2\"}]},{\"@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 t\u1ea1o table database trong Magento 2 - Magetop Blog","description":"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch \u0111\u1ec3 t\u1ea1o ra 1 module Magento 2. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.","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-table-database-trong-magento-2\/","og_locale":"en_US","og_type":"article","og_title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2 - Magetop Blog","og_description":"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch \u0111\u1ec3 t\u1ea1o ra 1 module Magento 2. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.","og_url":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/","og_site_name":"Magetop Blog","article_publisher":"https:\/\/www.facebook.com\/MagetopStore","article_published_time":"2020-03-20T10:30:22+00:00","article_modified_time":"2020-05-15T08:21:00+00:00","og_image":[{"width":750,"height":405,"url":"https:\/\/i1.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.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-table-database-trong-magento-2\/#article","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/"},"author":{"name":"Callula Huy","@id":"https:\/\/www.magetop.com\/blog\/#\/schema\/person\/a2bf0aa38cec01bc41197b9ec4b3e8c9"},"headline":"H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2","datePublished":"2020-03-20T10:30:22+00:00","dateModified":"2020-05-15T08:21:00+00:00","mainEntityOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/"},"wordCount":431,"commentCount":0,"publisher":{"@id":"https:\/\/www.magetop.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1","keywords":["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 ph\u1ea7n 2","h\u01b0\u1edbng d\u1eabn magento 2","H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2","t\u1ea1o b\u1ea3ng database trong magento 2","t\u1ea1o table database 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-table-database-trong-magento-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/","url":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/","name":"H\u01b0\u1edbng d\u1eabn t\u1ea1o table database trong Magento 2 - Magetop Blog","isPartOf":{"@id":"https:\/\/www.magetop.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#primaryimage"},"image":{"@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#primaryimage"},"thumbnailUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1","datePublished":"2020-03-20T10:30:22+00:00","dateModified":"2020-05-15T08:21:00+00:00","description":"B\u00e0i tr\u01b0\u1edbc m\u00ecnh \u0111\u00e3 h\u01b0\u1edbng d\u1eabn c\u00e1ch \u0111\u1ec3 t\u1ea1o ra 1 module Magento 2. Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o b\u1ea3ng(table) database trong Magento 2.","breadcrumb":{"@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-trong-magento-2\/#primaryimage","url":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1","contentUrl":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/taotabledatabase.png?fit=750%2C405&ssl=1","width":750,"height":405,"caption":"B\u00e0i 2: h\u01b0\u1edbng d\u1eabn t\u1ea1o table database Magento 2"},{"@type":"BreadcrumbList","@id":"https:\/\/www.magetop.com\/blog\/tao-table-database-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 t\u1ea1o table database trong Magento 2"}]},{"@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\/03\/taotabledatabase.png?fit=750%2C405&ssl=1","jetpack_shortlink":"https:\/\/wp.me\/paOdw5-oV","jetpack-related-posts":[{"id":2100,"url":"https:\/\/www.magetop.com\/blog\/model-trong-magento-2\/","url_meta":{"origin":1545,"position":0},"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":1478,"url":"https:\/\/www.magetop.com\/blog\/tao-module-don-gian-magento-2\/","url_meta":{"origin":1545,"position":1},"title":"H\u01b0\u1edbng d\u1eabn t\u1ea1o module \u0111\u01a1n gi\u1ea3n trong Magento 2","author":"Callula Huy","date":"March 7, 2020","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1c b\u1ea1n c\u00e1ch t\u1ea1o 1 module Magento 2 \u0111\u01a1n gi\u1ea3n - Hello world 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 l\u1eadp tr\u00ecnh module Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/2459444_7fd3-750x405-1.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\/03\/2459444_7fd3-750x405-1.png?fit=750%2C405&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/2459444_7fd3-750x405-1.png?fit=750%2C405&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/03\/2459444_7fd3-750x405-1.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2197,"url":"https:\/\/www.magetop.com\/blog\/tao-view-trong-magento-2\/","url_meta":{"origin":1545,"position":2},"title":"H\u01b0\u1edbng d\u1eabn l\u1eadp tr\u00ecnh module Magento 2: T\u1ea1o view","author":"Callula Huy","date":"May 15, 2020","format":false,"excerpt":"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.","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 l\u1eadp tr\u00ecnh module Magento 2 t\u1ea1o view","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2020\/05\/tao-view-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\/tao-view-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\/tao-view-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\/tao-view-magento-2.png?fit=750%2C405&ssl=1&resize=700%2C400 2x"},"classes":[]},{"id":2256,"url":"https:\/\/www.magetop.com\/blog\/tao-menu-admin-module-magento-2\/","url_meta":{"origin":1545,"position":3},"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":1545,"position":4},"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":5753,"url":"https:\/\/www.magetop.com\/blog\/huong-dan-thay-doi-ten-database-trong-magento-2\/","url_meta":{"origin":1545,"position":5},"title":"H\u01b0\u1edbng d\u1eabn thay \u0111\u1ed5i t\u00ean database trong Magento 2","author":"Callula Huy","date":"June 22, 2021","format":false,"excerpt":"Trong b\u00e0i vi\u1ebft n\u00e0y m\u00ecnh s\u1ebd h\u01b0\u1edbng d\u1eabn b\u1ea1n c\u00e1ch thay \u0111\u1ed5i t\u00ean database 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 thay \u0111\u1ed5i t\u00ean database trong Magento 2","src":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-thay-doi-ten-database-trong-Magento-2.png?fit=750%2C423&ssl=1&resize=350%2C200","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-thay-doi-ten-database-trong-Magento-2.png?fit=750%2C423&ssl=1&resize=350%2C200 1x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-thay-doi-ten-database-trong-Magento-2.png?fit=750%2C423&ssl=1&resize=525%2C300 1.5x, https:\/\/i0.wp.com\/www.magetop.com\/blog\/wp-content\/uploads\/2021\/06\/Huong-dan-thay-doi-ten-database-trong-Magento-2.png?fit=750%2C423&ssl=1&resize=700%2C400 2x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1545","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=1545"}],"version-history":[{"count":6,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1545\/revisions"}],"predecessor-version":[{"id":2200,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/posts\/1545\/revisions\/2200"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media\/1611"}],"wp:attachment":[{"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/media?parent=1545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/categories?post=1545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.magetop.com\/blog\/wp-json\/wp\/v2\/tags?post=1545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}