Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 4 commits
  • 2 files changed
  • 0 commit comments
  • 2 contributors
Showing with 3 additions and 2 deletions.
  1. +1 −0 Config/inflections.php
  2. +2 −2 Console/Templates/default/views/view.ctp
View
1 Config/inflections.php
@@ -20,6 +20,7 @@
'as' => 'ases',
'bencao' => 'bencaos',
'cao' => 'caes',
+ 'campus' => 'campi',
'capelao' => 'capelaes',
'capitao' => 'capitaes',
'chao' => 'chaos',
View
4 Console/Templates/default/views/view.ctp
@@ -27,7 +27,7 @@ foreach ($fields as $field) {
foreach ($associations['belongsTo'] as $alias => $details) {
if ($field === $details['foreignKey']) {
$isKey = true;
- echo "\t\t<dt><?php echo __('" . nflexao::acentos(Inflector::humanize(Inflector::underscore($alias))) . "'); ?></dt>\n";
+ echo "\t\t<dt><?php echo __('" . Inflexao::acentos(Inflector::humanize(Inflector::underscore($alias))) . "'); ?></dt>\n";
echo "\t\t<dd>\n\t\t\t<?php echo \$this->Html->link(\${$singularVar}['{$alias}']['{$details['displayField']}'], array('controller' => '{$details['controller']}', 'action' => 'view', \${$singularVar}['{$alias}']['{$details['primaryKey']}'])); ?>\n\t\t\t&nbsp;\n\t\t</dd>\n";
break;
}
@@ -136,4 +136,4 @@ echo "\t<?php endforeach; ?>\n";
</ul>
</div>
</div>
-<?php endforeach;?>
+<?php endforeach;?>

No commit comments for this range

Something went wrong with that request. Please try again.