tym17/admin-module-sample
最新稳定版本:v2.0.1
Composer 安装命令:
composer require tym17/admin-module-sample
包简介
Admin module sample for Magento 2
关键字:
README 文档
README
- To add a menu/sub-menu, check out the following files:
etc/adminhtml/menu.xmletc/adminhtml/routes.xml
- To bind a page to those submenus, check out the following files:
- You will notice the path to look like the action parameter from
etc/adminhtml/menu.xml Controller/Adminhtml/SampleOne/Index.phpController/Adminhtml/SampleTwo/Index.php
- You will notice the path to look like the action parameter from
- To add content to your freshly created pages, check out the following files:
view/adminhtml/layout/adminsample_sampleone_index.xmlview/adminhtml/templates/sample/one.phtml
- To add content to your freshly created pages and pass something to it, You can also check:
view/adminhtml/layout/adminsample_sampletwo_index.xmlController/Adminhtml/SampleTwo/Index.phpview/adminhtml/templates/sample/two.phtml
- To set and retrieve values from Magento2's configuration you can check these files:
Controller/Adminhtml/SampleTwo/Index.phpetc/adminhtml/system.xmlConfiguration menu in Stores/Settings/Configuration is set hereetc/config.xmlDefault configurationview/adminhtml/templates/sample/two.phtml
- To see how ACLs are made, check these files:
etc/acl.xml- You'll notice that most resource elements are from
etc/adminhtml/menu.xml
- To see how to have different layouts, check this file:
view/adminhtml/layout/adminsample_sampletwo_index.xml
- To see how we create a custom block and use it, check those files:
Block/Adminhtml/CustomBlock.phpview/adminhtml/layout/adminsample_sampletwo_index.xml
- To see how you use block functions, have a look at:
Block/Adminhtml/CustomBlock.phpview/adminhtml/templates/custom/one.phtml
- To call a helper from a block you can check:
Block/Adminhtml/CustomBlock.phpHelper/ConfigHelper.phpview/adminhtml/templates/custom/one.phtml
To do
- Use model inside CustomBlock
统计信息
- 总下载量: 14
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 42
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: AFL
- 更新时间: 2015-11-09