Skip to content

Commit fab6d5d

Browse files
authored
Merge pull request #241 from cambraca/patch-1
Update sign up form in tutorial-basic.md
2 parents 546b976 + 637316d commit fab6d5d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/tutorial-basic.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -371,23 +371,23 @@ The empty index action gives the clean pass to a view with the form definition (
371371
```html
372372
<h2>Sign up using this form</h2>
373373

374-
<?php echo $this->tag->form("signup/register"); ?>
374+
<?php echo $this->tag->form(["action" => "signup/register"]); ?>
375375

376376
<p>
377377
<label for="name">Name</label>
378-
<?php echo $this->tag->textField("name"); ?>
378+
<?php echo $this->tag->inputText("name"); ?>
379379
</p>
380380

381381
<p>
382382
<label for="email">E-Mail</label>
383-
<?php echo $this->tag->textField("email"); ?>
383+
<?php echo $this->tag->inputText("email"); ?>
384384
</p>
385385

386386
<p>
387-
<?php echo $this->tag->submitButton("Register"); ?>
387+
<?php echo $this->tag->inputSubmit("Register"); ?>
388388
</p>
389389

390-
</form>
390+
<?php echo $this->tag->close('form'); ?>
391391
```
392392

393393
Viewing the form in your browser will display the following:

0 commit comments

Comments
 (0)