reference/outcontrol/functions/output-reset-rewrite-vars.xml
f3f9d2632122a094f9b00b1896b8efc403040f1d
...
...
@@ -13,9 +13,8 @@
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

...
...
@@ -66,7 +65,8 @@
66
65
<programlisting role="php">
67
66
<![CDATA[
68
67
<?php
69
-
session_start();
68
+
ini_set('url_rewriter.tags', 'a=href');
69
+

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

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