diff options
author | Derek Allard <derek.allard@ellislab.com> | 2008-05-25 14:37:11 +0200 |
---|---|---|
committer | Derek Allard <derek.allard@ellislab.com> | 2008-05-25 14:37:11 +0200 |
commit | 88d4ce5e5ad8c989c968baa6141dc0f763ffe612 (patch) | |
tree | 7e584f552a6688190b6a96aa7a1dc0915c8023a8 | |
parent | 2d40703ff7454dcbd10701bd5e0b3082ccc96be1 (diff) |
fix curly quotes in form_button example
-rw-r--r-- | user_guide/helpers/form_helper.html | 16 |
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 />
<button name="name" type="submit">Content</button>
@@ -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 />
- ‘name’ => ‘button’,<br />
- ‘id’ => ‘button’,<br />
- ‘value’ => ‘true’,<br />
- ‘type’ => ‘reset’,<br />
- ‘content’ => ‘Reset’<br />
+ 'name' => 'button',<br />
+ 'id' => 'button',<br />
+ 'value' => 'true',<br />
+ 'type' => 'reset',<br />
+ '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>
|