Skip to content

Commit

Permalink
Fixing problem in view bake template
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Nov 16, 2014
1 parent 14b8d46 commit a2bd413
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Template/Bake/Template/view.ctp
Expand Up @@ -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>

Expand Down

0 comments on commit a2bd413

Please sign in to comment.