Skip to content

Commit

Permalink
Added Bootstrap classes to Success Flash
Browse files Browse the repository at this point in the history
Added Bootstrap classes to Success Flash
  • Loading branch information
itamark committed Jan 28, 2014
1 parent 51316e9 commit 5c2b437
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@
$this-><?php echo $currentModelName; ?>->create();
if ($this-><?php echo $currentModelName; ?>->save($this->request->data)) {
<?php if ($wannaUseSession): ?>
$this->Session->setFlash(__('The <?php echo strtolower($singularHumanName); ?> has been saved.'));
$this->Session->setFlash(__('The <?php echo strtolower($singularHumanName); ?> has been saved.'), array ('class' => 'alert alert-success'));
return $this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('The <?php echo strtolower($singularHumanName); ?> could not be saved. Please, try again.'));
$this->Session->setFlash(__('The <?php echo strtolower($singularHumanName); ?> could not be saved. Please, try again.'), array ('class' => 'alert alert-danger'));
<?php else: ?>
return $this->flash(__('The <?php echo strtolower($singularHumanName); ?> has been saved.'), array('action' => 'index'));
<?php endif; ?>
Expand Down

0 comments on commit 5c2b437

Please sign in to comment.