File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
lib/Cake/Console/Templates/default/actions Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 56
56
if ($this-><?php echo $ currentModelName ; ?> ->save($this->request->data)) {
57
57
<?php if ($ wannaUseSession ): ?>
58
58
$this->Session->setFlash(__('The <?php echo strtolower ($ singularHumanName ); ?> has been saved'));
59
- $this->redirect(array('action' => 'index'));
59
+ return $this->redirect(array('action' => 'index'));
60
60
<?php else : ?>
61
61
$this->flash(__('<?php echo ucfirst (strtolower ($ currentModelName )); ?> saved.'), array('action' => 'index'));
62
62
<?php endif ; ?>
99
99
if ($this-><?php echo $ currentModelName ; ?> ->save($this->request->data)) {
100
100
<?php if ($ wannaUseSession ): ?>
101
101
$this->Session->setFlash(__('The <?php echo strtolower ($ singularHumanName ); ?> has been saved'));
102
- $this->redirect(array('action' => 'index'));
102
+ return $this->redirect(array('action' => 'index'));
103
103
<?php else : ?>
104
104
$this->flash(__('The <?php echo strtolower ($ singularHumanName ); ?> has been saved.'), array('action' => 'index'));
105
105
<?php endif ; ?>
145
145
if ($this-><?php echo $ currentModelName ; ?> ->delete()) {
146
146
<?php if ($ wannaUseSession ): ?>
147
147
$this->Session->setFlash(__('<?php echo ucfirst (strtolower ($ singularHumanName )); ?> deleted'));
148
- $this->redirect(array('action' => 'index'));
148
+ return $this->redirect(array('action' => 'index'));
149
149
<?php else : ?>
150
150
$this->flash(__('<?php echo ucfirst (strtolower ($ singularHumanName )); ?> deleted'), array('action' => 'index'));
151
151
<?php endif ; ?>
155
155
<?php else : ?>
156
156
$this->flash(__('<?php echo ucfirst (strtolower ($ singularHumanName )); ?> was not deleted'), array('action' => 'index'));
157
157
<?php endif ; ?>
158
- $this->redirect(array('action' => 'index'));
158
+ return $this->redirect(array('action' => 'index'));
159
159
}
You can’t perform that action at this time.
0 commit comments