mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing use of Model::del() to Model::delete()
This commit is contained in:
parent
dfa9ccdaf9
commit
78c4a21451
1 changed files with 1 additions and 3 deletions
|
@ -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'));
|
||||
|
|
Loading…
Add table
Reference in a new issue