Skip to content
Browse files

Merge pull request #22 from vitorpc/2.0

Adicionada um novo plural irregular e corrigido o template view.ctp
  • Loading branch information...
2 parents 86b1fae + bf97ea7 commit 49ada2cbb5447ed7e209e755115bae113f133a87 @jrbasso committed Mar 29, 2012
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;?>

0 comments on commit 49ada2c

Please sign in to comment.
Something went wrong with that request. Please try again.