Browse Source

Fixing problem in view bake template

Jose Lorenzo Rodriguez 11 years ago
parent
commit
a2bd413968
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/Template/Bake/Template/view.ctp

+ 3 - 3
src/Template/Bake/Template/view.ctp

@@ -154,9 +154,9 @@ foreach ($relations as $alias => $details):
 
 			<% $otherPk = "\${$otherSingularVar}->{$details['primaryKey'][0]}"; %>
 			<td class="actions">
-				<?= $this->Html->link(__('View'), ['controller' => '<%= $details['controller'] %>', 'action' => 'view', <%= $otherPk %>]) %>\n";
-				<?= $this->Html->link(__('Edit'), ['controller' => '<%= $details['controller'] %>', 'action' => 'edit', <%= $otherPk %>]) %>\n";
-				<?= $this->Form->postLink(__('Delete'), ['controller' => '<%= $details['controller'] %>', 'action' => 'delete', <%= $otherPk %>], ['confirm' => __('Are you sure you want to delete # {0}?', <%= $otherPk %>)]) %>\n";
+				<?= $this->Html->link(__('View'), ['controller' => '<%= $details['controller'] %>', 'action' => 'view', <%= $otherPk %>]) %>
+				<?= $this->Html->link(__('Edit'), ['controller' => '<%= $details['controller'] %>', 'action' => 'edit', <%= $otherPk %>]) %>
+				<?= $this->Form->postLink(__('Delete'), ['controller' => '<%= $details['controller'] %>', 'action' => 'delete', <%= $otherPk %>], ['confirm' => __('Are you sure you want to delete # {0}?', <%= $otherPk %>)]) %>
 			</td>
 		</tr>