Skip to content

Instantly share code, notes, and snippets.

@ytake
Created April 27, 2014 13:29
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 ytake/11345614 to your computer and use it in GitHub Desktop.
Save ytake/11345614 to your computer and use it in GitHub Desktop.
laravel-smarty sample (extends)
{extends file='layouts/default.tpl'}
{block name=title}sample{/block}
{block name=contents}
<h1 class="form-signin-heading">register</h1>
{{Form::open(['action' => 'RegisterController@confirm', "class" => "form-signin"])}}
{{Form::text('email', null, ["class" => "form-control", "placeholder"=>"email", "autofocus" => true])}}
{{Form::password('password', ["class" => "form-control", "placeholder"=>"password"])}}
{{Form::close()}}
{/block}
@ytake
Copy link
Author

ytake commented May 15, 2014

required short array syntax

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