reference/yaf/yaf_plugin_abstract/routershutdown.xml
73fae4ee51b644b72028e610abefefced57c18ad
...
...
@@ -19,8 +19,6 @@
19
19
is usually used for login check.
20
20
</para>
21
21

22
-
&warn.undocumented.func;
23
-

24
22
</refsect1>
25
23

26
24
<refsect1 role="parameters">
...
...
@@ -78,9 +76,10 @@ class UserInitPlugin extends Yaf_Plugin_Abstract {
78
76
}
79
77
80
78
/* Use access check failed, need to login */
81
-
$response->redirect("http://yourdomain.com/login/");
79
+
$response->setRedirect("http://yourdomain.com/login/");
82
80
return FALSE;
83
81
}
82
+
}
84
83
?>
85
84
]]>
86
85
</programlisting>
87
86