Permalink
Browse files

Fixing use of Model::del() to Model::delete()

  • Loading branch information...
1 parent dfa9ccd commit 78c4a21451cd7aa7cea8582c3bb63552cab0bc48 @markstory markstory committed Aug 7, 2009
Showing with 1 addition and 3 deletions.
  1. +1 −3 cake/console/templates/default/actions/controller_actions.ctp
@@ -2,8 +2,6 @@
/**
* Bake Template for Controller action generation.
*
- *
- *
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
@@ -125,7 +123,7 @@
$this->flash(__('Invalid <?php echo $singularHumanName; ?>', true), array('action' => 'index'));
<?php endif; ?>
}
- if ($this-><?php echo $currentModelName; ?>->del($id)) {
+ if ($this-><?php echo $currentModelName; ?>->delete($id)) {
<?php if ($wannaUseSession): ?>
$this->Session->setFlash(__('<?php echo $singularHumanName; ?> deleted', true));
$this->redirect(array('action'=>'index'));

0 comments on commit 78c4a21

Please sign in to comment.