flagflag  
3: 2012-04-15 (Sun) 03:35:47 iseki source 4: 2012-04-21 (Sat) 11:57:57 iseki source
Line 46: Line 46:
- required_param('course',  PARAM_INT); - required_param('course',  PARAM_INT);
- optional_param('mode', default, PARAM_ALPHA); - optional_param('mode', default, PARAM_ALPHA);
 +#br
 +
 +*** PAGE, OUTPUT [#p5713263]
 +**** エラー: The theme has already been set up for this page ready for output. Therefore, you can no longer change the theme, or anything that might affect what the current theme is, for example, the course. [#ocfe165c]
 +- 通常は require_login() を実行してから ヘッダーを書く.
 +- ヘッダーを書いた後に require_login() を実行すると,上記のエラーが出る.
 +- 対策: require_login() を実行してから ヘッダーを書く.
 + $PAGE->set_title($title);
 + $PAGE->set_heading($heading);
 + $PAGE->set_cacheable($cache); // true
 + $PAGE->set_button($button); // ' '
 + $PAGE->set_headingmenu($menu);
 +
 + require_login($course->id);
 + echo $OUTPUT->header();
#br #br


Front page   New List of Pages Search Recent changes   Help   RSS of recent changes (RSS 1.0) RSS of recent changes (RSS 2.0) RSS of recent changes (RSS Atom)

Site Search

Login

Username:

Password:


Lost Password?
Register now!!

Sub Menu

mini Calendar

Last MonthMay 2024Next Month
Su Mo Tu We Th Fr Sa
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Today

Who's Online

32 user(s) are online (5 user(s) are browsing xpwiki)

Members: 0
Guests: 32

more...

Access Counter

Today : 168168168
Yesterday : 5790579057905790
Total : 2365296423652964236529642365296423652964236529642365296423652964
Powered by XOOPS Cube 2.1© 2001-2006 XOOPS Cube Project
Design by XoopsDesign.com