Skip to content

Commit

Permalink
Dev Simplified and documented setFlashMessage function
Browse files Browse the repository at this point in the history
  • Loading branch information
c-schmitz committed Jul 28, 2016
1 parent 74c8727 commit 7b2a6d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions application/core/LSYii_Application.php
Expand Up @@ -155,10 +155,10 @@ public function setConfig($name, $value)
* </code>
*
* @param string $message The message you want to show on next page load
* @param string $type Type can be 'success','info','warning','danger','error' which correalate to the particular bootstrap alert classes - see http://getbootstrap.com/components/#alerts . Note: Option 'error' is synonymous to 'danger'
* @param string $type Type can be 'success','info','warning','danger','error' which relate to the particular bootstrap alert classes - see http://getbootstrap.com/components/#alerts . Note: Option 'error' is synonymous to 'danger'
* @return LSYii_Application Provides a fluent interface
*/
public function setFlashMessage($message,$type='default')
public function setFlashMessage($message,$type='success')
{
$aFlashMessage=$this->session['aFlashMessage'];
$aFlashMessage[]=array('message'=>$message,'type'=>$type);
Expand Down

0 comments on commit 7b2a6d6

Please sign in to comment.