mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
Updating bake templates to let PUT methods through as well.
This commit is contained in:
parent
19f9caed28
commit
75af48b774
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@
|
|||
if (!$this-><?php echo $currentModelName; ?>->exists()) {
|
||||
throw new NotFoundException(__('Invalid <?php echo strtolower($singularHumanName); ?>'));
|
||||
}
|
||||
if ($this->request->is('post')) {
|
||||
if ($this->request->is('post') || $this->request->is('put')) {
|
||||
if ($this-><?php echo $currentModelName; ?>->save($this->request->data)) {
|
||||
<?php if ($wannaUseSession): ?>
|
||||
$this->Session->setFlash(__('The <?php echo strtolower($singularHumanName); ?> has been saved'));
|
||||
|
|
Loading…
Add table
Reference in a new issue