답변 2개
채택된 답변
+20 포인트
3개월 전
다음 코드가 도움이 될지 모르겠습니다.
</p>
<p><?php</p>
<p>include 'common.php';
</p>
<p>function hook_fn_0() {
print('<fieldset>');
print('<legend>' . __FUNCTION__ . '</legend>');
print('</fieldset>');
}</p>
<p>
function hook_fn_2($arg1, $arg2) {
print('<fieldset>');
print('<legend>' . __FUNCTION__ . '</legend>');</p>
<p> </p>
<p> print('<pre>');
print_r(func_get_args());
print('</pre>');</p>
<p> </p>
<p> print('</fieldset>');
}</p>
<p>
add_event('foo_0', 'hook_fn_0', G5_HOOK_DEFAULT_PRIORITY, 0);
add_event('foo_2', 'hook_fn_2', G5_HOOK_DEFAULT_PRIORITY, 2);</p>
<p>
run_event('foo_0');
run_event('foo_2', 1, 'a');</p>
<p>?></p>
<p>
로그인 후 평가할 수 있습니다
댓글을 작성하려면 로그인이 필요합니다.
답변을 작성하려면 로그인이 필요합니다.
로그인