- - Html->link(__(' New " . $singularHumanName . "'), array('action' => 'add'), array('escape' => false)); ?>"; ?>
+ - Html->link(' ' . __('New " . $singularHumanName . "'), array('action' => 'add'), array('escape' => false)); ?>"; ?>
$data) {
foreach ($data as $alias => $details) {
if ($details['controller'] != $this->name && !in_array($details['controller'], $done)) {
- echo "\t\t- Html->link(__(' List " . Inflector::humanize($details['controller']) . "'), array('controller' => '{$details['controller']}', 'action' => 'index'), array('escape' => false)); ?>
\n";
- echo "\t\t- Html->link(__(' New " . Inflector::humanize(Inflector::underscore($alias)) . "'), array('controller' => '{$details['controller']}', 'action' => 'add'), array('escape' => false)); ?>
\n";
+ echo "\t\t- Html->link(' ' . __('List " . Inflector::humanize($details['controller']) . "'), array('controller' => '{$details['controller']}', 'action' => 'index'), array('escape' => false)); ?>
\n";
+ echo "\t\t- Html->link(' ' .__('New " . Inflector::humanize(Inflector::underscore($alias)) . "'), array('controller' => '{$details['controller']}', 'action' => 'add'), array('escape' => false)); ?>
\n";
$done[] = $details['controller'];
}
}
@@ -117,7 +117,7 @@
echo "\t\t\t\t?>\n";
?>
- \n";
?>
diff --git a/app/Console/Templates/bootstrap/views/view.ctp b/app/Console/Templates/bootstrap/views/view.ctp
index 033fac952..2bf3f774f 100755
--- a/app/Console/Templates/bootstrap/views/view.ctp
+++ b/app/Console/Templates/bootstrap/views/view.ctp
@@ -31,21 +31,21 @@
-
Actions
+
" ?>
Html->link(__('  Edit " . $singularHumanName ."'), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}']), array('escape' => false)); ?> \n";
- echo "\t\t- Form->postLink(__(' Delete " . $singularHumanName . "'), array('action' => 'delete', \${$singularVar}['{$modelClass}']['{$primaryKey}']), array('escape' => false), __('Are you sure you want to delete # %s?', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>
\n";
- echo "\t\t- Html->link(__('  List " . $pluralHumanName . "'), array('action' => 'index'), array('escape' => false)); ?>
\n";
- echo "\t\t- Html->link(__('  New " . $singularHumanName . "'), array('action' => 'add'), array('escape' => false)); ?>
\n";
+ echo "\t\t- Html->link('  ' . __('Edit " . $singularHumanName ."'), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}']), array('escape' => false)); ?>
\n";
+ echo "\t\t- Form->postLink(' ' . __('Delete " . $singularHumanName . "'), array('action' => 'delete', \${$singularVar}['{$modelClass}']['{$primaryKey}']), array('escape' => false), __('Are you sure you want to delete # %s?', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>
\n";
+ echo "\t\t- Html->link('  '. __('List " . $pluralHumanName . "'), array('action' => 'index'), array('escape' => false)); ?>
\n";
+ echo "\t\t- Html->link('  ' . __('New " . $singularHumanName . "'), array('action' => 'add'), array('escape' => false)); ?>
\n";
$done = array();
foreach ($associations as $type => $data) {
foreach ($data as $alias => $details) {
if ($details['controller'] != $this->name && !in_array($details['controller'], $done)) {
- echo "\t\t- Html->link(__('  List " . Inflector::humanize($details['controller']) . "'), array('controller' => '{$details['controller']}', 'action' => 'index'), array('escape' => false)); ?>
\n";
- echo "\t\t- Html->link(__('  New " . Inflector::humanize(Inflector::underscore($alias)) . "'), array('controller' => '{$details['controller']}', 'action' => 'add'), array('escape' => false)); ?>
\n";
+ echo "\t\t- Html->link('  ' . __('List " . Inflector::humanize($details['controller']) . "'), array('controller' => '{$details['controller']}', 'action' => 'index'), array('escape' => false)); ?>
\n";
+ echo "\t\t- Html->link('  ' . __('New " . Inflector::humanize(Inflector::underscore($alias)) . "'), array('controller' => '{$details['controller']}', 'action' => 'add'), array('escape' => false)); ?>
\n";
$done[] = $details['controller'];
}
}
@@ -57,7 +57,7 @@
-
+
\n";
- echo "\t\t\t\tHtml->link(__(''), array('controller' => '{$details['controller']}', 'action' => 'view', \${$otherSingularVar}['{$details['primaryKey']}']), array('escape' => false)); ?>\n";
- echo "\t\t\t\tHtml->link(__(''), array('controller' => '{$details['controller']}', 'action' => 'edit', \${$otherSingularVar}['{$details['primaryKey']}']), array('escape' => false)); ?>\n";
- echo "\t\t\t\tForm->postLink(__(''), array('controller' => '{$details['controller']}', 'action' => 'delete', \${$otherSingularVar}['{$details['primaryKey']}']), array('escape' => false), __('Are you sure you want to delete # %s?', \${$otherSingularVar}['{$details['primaryKey']}'])); ?>\n";
+ echo "\t\t\t\tHtml->link('', array('controller' => '{$details['controller']}', 'action' => 'view', \${$otherSingularVar}['{$details['primaryKey']}']), array('escape' => false)); ?>\n";
+ echo "\t\t\t\tHtml->link('', array('controller' => '{$details['controller']}', 'action' => 'edit', \${$otherSingularVar}['{$details['primaryKey']}']), array('escape' => false)); ?>\n";
+ echo "\t\t\t\tForm->postLink('', array('controller' => '{$details['controller']}', 'action' => 'delete', \${$otherSingularVar}['{$details['primaryKey']}']), array('escape' => false), __('Are you sure you want to delete # %s?', \${$otherSingularVar}['{$details['primaryKey']}'])); ?>\n";
echo "\t\t\t\n";
echo "\t\t\n";
@@ -164,7 +164,7 @@ echo "\t\n";
\n\n"; ?>
- Html->link(__(' New " . Inflector::humanize(Inflector::underscore($alias)) . "'), array('controller' => '{$details['controller']}', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?>"; ?>
+ Html->link(' ' . __('New " . Inflector::humanize(Inflector::underscore($alias)) . "'), array('controller' => '{$details['controller']}', 'action' => 'add'), array('escape' => false, 'class' => 'btn btn-default')); ?>"; ?>