Skip to content
This repository has been archived by the owner on Aug 9, 2022. It is now read-only.

Commit

Permalink
minor text fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
mitulgolakiya committed Apr 25, 2015
1 parent 2ea6dcd commit 05bef8d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Mitul/Generator/Generators/Scaffold/ViewGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ private function generateFields()

foreach($this->commandData->inputFields as $field)
{
$singleFieldStr = str_replace('$FIELD_NAME_TITLE$', Str::title($field['fieldName']), $fieldTemplate);
$singleFieldStr = str_replace('$FIELD_NAME_TITLE$', Str::title(str_replace("_", " ", $field['fieldName'])), $fieldTemplate);
$singleFieldStr = str_replace('$FIELD_NAME$', $field['fieldName'], $singleFieldStr);
$fieldsStr .= $singleFieldStr . "\n\n";
}
Expand Down Expand Up @@ -79,7 +79,7 @@ private function generateIndex()

foreach($this->commandData->inputFields as $field)
{
$headerFields .= "<th>" . Str::title($field['fieldName']) . "</th>\n\t\t\t";
$headerFields .= "<th>" . Str::title(str_replace("_", " ", $field['fieldName'])) . "</th>\n\t\t\t";
}

$headerFields = trim($headerFields);
Expand Down

0 comments on commit 05bef8d

Please sign in to comment.