Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-27546

Moodle forms library does not provide a way to get the HTML code without echoing it

XMLWordPrintable

    • Icon: Improvement Improvement
    • Resolution: Won't Do
    • Icon: Critical Critical
    • None
    • 2.0.3, 2.2.2
    • Forms Library
    • MOODLE_20_STABLE, MOODLE_22_STABLE

      Currently there is only display() method that does

      print $this->toHtml();

      To be able to integrate moodleforms into the new rendering framework, we need a way to obtain the HTML without echoing it. At the moment, the only way is to use a bit hacky trick with the output buffer.

            moodle.com Moodle HQ
            mudrd8mz David Mudrák (@mudrd8mz)
            Votes:
            7 Vote for this issue
            Watchers:
            13 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.