Skip to content

Instantly share code, notes, and snippets.

@zackkitzmiller
Created July 30, 2013 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zackkitzmiller/6116638 to your computer and use it in GitHub Desktop.
Save zackkitzmiller/6116638 to your computer and use it in GitHub Desktop.
<?php echo Form::open(array('url' => 'foo/bar', 'method' => 'post')); ?>
<form action="foo/bar" method="post">
@ianlandsman
Copy link

Seeing an echo always makes me happy #OldSchool

@JeffreyWay
Copy link

link_to_route('foo', 'Go to foo');

<a href="<?= route('foo'); ?>">Go to foo</a>

Oh, for yours...

{{ Form::open(['url' => 'foo/bar']); }}

<form action="foo/bar" method="post">

But, yes, I'm now competing over 5 chars. ;)

@JeffreyWay
Copy link

I get the point on some of the other helpers. Doesn't save anything. Though I wouldn't mind if there were some view specific helper funcs that mapped to those methods.

{{ label('foo', 'Foo Input') }}
{{ input_tag('foo') }}

vs.

<label for="foo">Foo Input</label>
<input type="text" id="foo" name="foo">

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment