Skip to content

Commit

Permalink
Fixing use of Model::del() to Model::delete()
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Aug 12, 2009
1 parent dfa9ccd commit 78c4a21
Showing 1 changed file with 1 addition and 3 deletions.
Expand Up @@ -2,8 +2,6 @@
/**
* Bake Template for Controller action generation.
*
*
*
* PHP versions 4 and 5
*
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
Expand Down Expand Up @@ -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'));
Expand Down

0 comments on commit 78c4a21

Please sign in to comment.