Hi,
Its working in chrome not working in firefox Why?
Cant Set flash Data in my Site,
In My controller,
if($model->save())
{
Yii::app()->user->setFlash('success', 'Your Message Send Successfully..'); //Set flash Data
$this->redirect(array('view'));
}
In my view Page:
I get flash Data:
foreach (Yii::app()->user->getFlashes() as $key => $message) {
echo '<div class="alert alert-' . $key . ' "><a href="#" class="close" data-dismiss="alert">&times;</a>' . $message . "</div>";
}
But Cant get flash data,and also try like these,
<?php if(Yii::app()->user->hasFlash(‘success’)){?>
<div class="alert alert-success">
<?php echo Yii::app()->user->getFlash('success'); ?>
</div>
<?php }
?>
But this code also not working please give me solution for my issue.