Overriding plugin renderer moodle

前端 未结 2 603
南笙
南笙 2021-01-16 06:51

I have site running Moodle 2.9.3+ and i was trying to customize the renderer of one existing plugin, so i found this:

How to override a renderer such that the functi

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-16 07:36

    Hmmm are you sure there isn't an error in the script inclusion? If you have error_reporting off in your ini settings you won't see the E_WARNING PHP might be raising. Set this to on, or use require_once() instead. See the accepted response to this SO post for the differences: Difference between require, include and require_once?

提交回复
热议问题