reference/outcontrol/functions/output-reset-rewrite-vars.xml
f3f9d2632122a094f9b00b1896b8efc403040f1d
...
...
@@ -13,12 +13,16 @@
13
13
<void/>
14
14
</methodsynopsis>
15
15
<para>
16
-
This function resets the URL rewriter and removes all rewrite
17
-
variables previously set by the <function>output_add_rewrite_var</function>
18
-
function.
16
+
This function removes all rewrite variables previously set by
17
+
the <function>output_add_rewrite_var</function> function.
19
18
</para>
20
19
</refsect1>
21
20

21
+
<refsect1 role="parameters">
22
+
&reftitle.parameters;
23
+
&no.function.parameters;
24
+
</refsect1>
25
+

22
26
<refsect1 role="returnvalues">
23
27
&reftitle.returnvalues;
24
28
<para>
...
...
@@ -61,7 +65,8 @@
61
65
<programlisting role="php">
62
66
<![CDATA[
63
67
<?php
64
-
session_start();
68
+
ini_set('url_rewriter.tags', 'a=href');
69
+

65
70
output_add_rewrite_var('var', 'value');
66
71

67
72
echo '<a href="file.php">link</a>';
...
...
@@ -75,7 +80,7 @@ echo '<a href="file.php">link</a>';
75
80
&example.outputs;
76
81
<screen>
77
82
<![CDATA[
78
-
<a href="file.php?PHPSESSID=xxx&var=value">link</a>
83
+
<a href="file.php?var=value">link</a>
79
84
<a href="file.php">link</a>
80
85
]]>
81
86
</screen>
82
87