summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDerek Allard <derek.allard@ellislab.com>2008-05-25 14:37:11 +0200
committerDerek Allard <derek.allard@ellislab.com>2008-05-25 14:37:11 +0200
commit88d4ce5e5ad8c989c968baa6141dc0f763ffe612 (patch)
tree7e584f552a6688190b6a96aa7a1dc0915c8023a8
parent2d40703ff7454dcbd10701bd5e0b3082ccc96be1 (diff)
fix curly quotes in form_button example
-rw-r--r--user_guide/helpers/form_helper.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/user_guide/helpers/form_helper.html b/user_guide/helpers/form_helper.html
index 77fe59878..324068465 100644
--- a/user_guide/helpers/form_helper.html
+++ b/user_guide/helpers/form_helper.html
@@ -346,7 +346,7 @@ fourth parameter:</p>
<p>Lets you generate a standard button element. You can minimally pass the button name and content in the first and second parameter:</p>
<code>
-echo form_button(’name’,’content’);<br />
+echo form_button('name','content');<br />
<br />
// Would produce<br />
&lt;button name="name" type="submit"&gt;Content&lt;/button&gt;
@@ -355,11 +355,11 @@ echo form_button(’name’,’content’);<br />
Or you can pass an associative array containing any data you wish your form to contain:
<code>
$data = array(<br />
-&nbsp;&nbsp;&nbsp;&nbsp;‘name’ => ‘button’,<br />
-&nbsp;&nbsp;&nbsp;&nbsp;‘id’ => ‘button’,<br />
-&nbsp;&nbsp;&nbsp;&nbsp;‘value’ => ‘true’,<br />
-&nbsp;&nbsp;&nbsp;&nbsp;‘type’ => ‘reset’,<br />
-&nbsp;&nbsp;&nbsp;&nbsp;‘content’ => ‘Reset’<br />
+&nbsp;&nbsp;&nbsp;&nbsp;'name' => 'button',<br />
+&nbsp;&nbsp;&nbsp;&nbsp;'id' => 'button',<br />
+&nbsp;&nbsp;&nbsp;&nbsp;'value' => 'true',<br />
+&nbsp;&nbsp;&nbsp;&nbsp;'type' => 'reset',<br />
+&nbsp;&nbsp;&nbsp;&nbsp;'content' => 'Reset'<br />
);<br />
<br />
echo form_button($data);<br />
@@ -370,8 +370,8 @@ echo form_button($data);<br />
If you would like your form to contain some additional data, like JavaScript, you can pass it as a string in the third parameter:
<code>
-$js = ‘onClick="some_function()"’;<br /><br />
-echo form_button(’mybutton’, ‘Click Me’, $js);
+$js = 'onClick="some_function()"';<br /><br />
+echo form_button('mybutton', 'Click Me', $js);
</code>