Skip to content
Permalink
Browse files

fix for confirm message on the bake templates

  • Loading branch information...
MichaelHoughton committed Feb 21, 2015
1 parent 3fee5b9 commit 4f2ed156121d01be9c0d3e685cbcae71b3db06c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Console/Templates/default/views/index.ctp
@@ -48,7 +48,7 @@
echo "\t\t<td class=\"actions\">\n";
echo "\t\t\t<?php echo \$this->Html->link(__('View'), array('action' => 'view', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>\n";
echo "\t\t\t<?php echo \$this->Html->link(__('Edit'), array('action' => 'edit', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>\n";
echo "\t\t\t<?php echo \$this->Form->postLink(__('Delete'), array('action' => 'delete', \${$singularVar}['{$modelClass}']['{$primaryKey}']), array(), __('Are you sure you want to delete # %s?', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>\n";
echo "\t\t\t<?php echo \$this->Form->postLink(__('Delete'), array('action' => 'delete', \${$singularVar}['{$modelClass}']['{$primaryKey}']), array('confirm' => __('Are you sure you want to delete # %s?', \${$singularVar}['{$modelClass}']['{$primaryKey}'])); ?>\n";
echo "\t\t</td>\n";
echo "\t</tr>\n";

0 comments on commit 4f2ed15

Please sign in to comment.
You can’t perform that action at this time.