【发布时间】:2016-07-20 12:45:10
【问题描述】:
我正在尝试为 moodle 开发一个自定义主题。我已按照教程https://docs.moodle.org/dev/Creating_a_theme 中的说明自定义首页。在首页我不想显示来自moodle的内容。所以我尝试删除 core_renderer::MAIN_CONTENT_TOKEN ,然后它显示错误
Coding error detected, it must be fixed by a programmer: page layout file [dirroot]/theme/mentornetz/layout/frontpage.php does not contain the main content placeholder, please include "<?php echo $OUTPUT->main_content() ?>" in theme layout file?
如何在不显示错误的情况下删除内容。
【问题讨论】: