我想将magento profiler用于管理区域。 magento管理员有没有选择这样做,还是有任何其他的mysql查询来做到这一点?
我正在使用magento 1.8
答案 0 :(得分:0)
发现我在mysql查询后运行的解决方案:
select * from core_config_data where path like '%template_hints%' and scope like '%default%';
这个查询将输出2行设置那里的value属性从0到1,如果你没有得到跟随查询的上层查询运行的记录
INSERT INTO core_config_data (scope, scope_id, path, value) VALUES ('default', 0,'dev/debug/template_hints', 1),('default', 0, 'dev/debug/template_hints_blocks', 1);
禁用它会再次将值更改为0
答案 1 :(得分:0)
Magento Profiler和Template Hints是两回事。
要启用Profiler,您需要取消注释Varien_Profiler::enable();
中找到的index.php
行,并在System > Configuration > Developer > Debug
中设置当前配置范围内的配置。
要在admin中启用模板路径提示,请使用以下命令:
insert into core_config_data (scope, scope_id, path, value)
values ('stores', 0, 'dev/debug/template_hints', 1)
on duplicate key update value = 1 &~ value;