Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #18 from utahcon/master

A simple change to _form.php to use more native code
  • Loading branch information...
commit 4be84aaea6acb92464dbd92dda94a7b22478f8e1 2 parents a8e1387 + 0f8e5e1
@philsturgeon philsturgeon authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 views/default/scaffold/views/_form.php
View
5 views/default/scaffold/views/_form.php
@@ -2,8 +2,9 @@
<?php foreach ($fields as $field): ?>
<p>
- <label for="<?php echo $field['name']; ?>"><?php echo \Inflector::humanize($field['name']); ?>:</label>
<?php
+ echo "<?php echo Form::label('". \Inflector::humanize($field['name'] ."', '{$field['name']}'); ?>\n";
+
switch($field['type']):
case 'text':
@@ -23,4 +24,4 @@
<?php echo '<?php echo Form::submit(); ?>'; ?>
</div>
-<?php echo '<?php echo Form::close(); ?>' ?>
+<?php echo '<?php echo Form::close(); ?>' ?>
Please sign in to comment.
Something went wrong with that request. Please try again.