mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +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.
|
* Bake Template for Controller action generation.
|
||||||
*
|
*
|
||||||
*
|
|
||||||
*
|
|
||||||
* PHP versions 4 and 5
|
* PHP versions 4 and 5
|
||||||
*
|
*
|
||||||
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
* CakePHP(tm) : Rapid Development Framework (http://cakephp.org)
|
||||||
|
@ -125,7 +123,7 @@
|
||||||
$this->flash(__('Invalid <?php echo $singularHumanName; ?>', true), array('action' => 'index'));
|
$this->flash(__('Invalid <?php echo $singularHumanName; ?>', true), array('action' => 'index'));
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
}
|
}
|
||||||
if ($this-><?php echo $currentModelName; ?>->del($id)) {
|
if ($this-><?php echo $currentModelName; ?>->delete($id)) {
|
||||||
<?php if ($wannaUseSession): ?>
|
<?php if ($wannaUseSession): ?>
|
||||||
$this->Session->setFlash(__('<?php echo $singularHumanName; ?> deleted', true));
|
$this->Session->setFlash(__('<?php echo $singularHumanName; ?> deleted', true));
|
||||||
$this->redirect(array('action'=>'index'));
|
$this->redirect(array('action'=>'index'));
|
||||||
|
|
Loading…
Add table
Reference in a new issue