espressobytes / debug-hints
Magento 2 的调试提示
v1.1.3
2020-05-19 14:14 UTC
This package is auto-updated.
Last update: 2024-09-28 00:44:22 UTC
README
概述
一个简单的 Magento 2 模块,用于在输出 HTML 中显示块和模板名称。
如果启用此模块,则在每个块的开始和结束处将注释集成到 html 输出中
<!-- Start Template: /path/to/template.phtml (BlockClass: Vendor\Namespace\Block\Class) -->
... html content of block and template ...
<!-- End Template: /path/to/template.phtml -->
安装
composer require espressobytes/debug-hints --dev
bin/magento module:enable Espressobytes_DebugHints
bin/magento setup:up
php bin/magento cache:clean
配置
- 在管理界面中,导航到: 商店 > 配置 > Espressobytes 模块 > 调试提示
- 将 显示前端提示 设置为 是,如果您想在前端显示模板名称
- 将 显示管理界面提示 设置为 是,如果您想显示管理界面中的模板名称
变更日志
v1.1.1: 支持 Adminhtml 中的块和模板,显示块的布局名称