public function danger($message, $removeAfterAccess = true)
    {
        Yii::$app->session->addFlash('danger', $message, $removeAfterAccess);
    }
public function danger($message, $removeAfterAccess = true)
    {
        Yii::$app->session->addFlash('danger', $message, $removeAfterAccess);
    }
public function danger ( $ message , $ removeAfterAccess = true ) { Yii :: $ app -> session -> addFlash ( 'danger' , $ message , $ removeAfterAccess ) ; }
Adds flash message of 'danger' type.
@param string $message the flash message to be translated.
@param bool $removeAfterAccess message removal after access only.
Adds flash message of danger type .