美文网首页
magento二次开发 - 开启开发者模式

magento二次开发 - 开启开发者模式

作者: jimxu | 来源:发表于2017-10-23 11:01 被阅读26次

开启了开发者模式后,可以直接在页面上显示错误信息

  1. 项目根目录/errors下的local.xml.sample 修改为local.xml

  2. 修改index.php


if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
    Mage::setIsDeveloperMode(true);
}

#ini_set('display_errors', 1);

改为

Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);

相关文章

网友评论

      本文标题:magento二次开发 - 开启开发者模式

      本文链接:https://www.haomeiwen.com/subject/bcwouxtx.html