|
|
@@ -54,7 +54,7 @@ foreach ($fields as $field) {
|
|
|
foreach ($data as $alias => $details) {
|
|
|
if ($details['controller'] != $this->name && !in_array($details['controller'], $done)) {
|
|
|
echo "\t\t<li><?= \$this->Html->link(__('List " . Inflector::humanize($details['controller']) . "'), ['controller' => '{$details['controller']}', 'action' => 'index']); ?> </li>\n";
|
|
|
- echo "\t\t<li><?= \$this->Html->link(__('New " . Inflector::humanize(Inflector::underscore($alias)) . "'), ['controller' => '{$details['controller']}', 'action' => 'add']); ?> </li>\n";
|
|
|
+ echo "\t\t<li><?= \$this->Html->link(__('New " . Inflector::humanize(Inflector::singularize(Inflector::underscore($alias))) . "'), ['controller' => '{$details['controller']}', 'action' => 'add']); ?> </li>\n";
|
|
|
$done[] = $details['controller'];
|
|
|
}
|
|
|
}
|
|
|
@@ -133,7 +133,7 @@ echo "\t\t<?php endforeach; ?>\n";
|
|
|
<?= "\t<?php endif; ?>\n"; ?>
|
|
|
<div class="actions">
|
|
|
<ul>
|
|
|
- <li><?= "<?= \$this->Html->link(__('New " . Inflector::humanize(Inflector::underscore($alias)) . "'), ['controller' => '{$details['controller']}', 'action' => 'add']); ?>"; ?> </li>
|
|
|
+ <li><?= "<?= \$this->Html->link(__('New " . Inflector::humanize(Inflector::singularize(Inflector::underscore($alias))) . "'), ['controller' => '{$details['controller']}', 'action' => 'add']); ?>"; ?> </li>
|
|
|
</ul>
|
|
|
</div>
|
|
|
</div>
|