print_header() and $OUTPUT->header()

print_header() and $OUTPUT->header()

by 康 陈 -
Number of replies: 2

In moodle 1.9 , I can set css by $CFG->stylesheets[] and js by passing

$meta to print_header(). But how can I do that in moodle 2.2 ? In moodle 2.2 $OUTPUT->header() is instead of print_header .However , $OUTPUT->header() does not need $meta . So I want to know How can i set css and js in moodle 2.2 .

Average of ratings: -
In reply to 康 陈

Re: print_header() and $OUTPUT->header()

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

You have already posted this same query several times and received an answer here: http://moodle.org/mod/forum/discuss.php?d=203015 (use styles.css to add stylesheets to your plugin).

Feel free to ask any further questions, but repeating the same question multiple times is not helpful.

In reply to Davo Smith

Re: print_header() and $OUTPUT->header()

by sachin suryavanshi -

Hi davo,

I have one quiz and it contains MCQs , true-false type question from diffrent topic which is covering one subject .

Now at the end of quiz i want analysis of question by their topic.

Is it possible in moodle 2.3 or I have to write code for that.

Regards

Sachin