Reputation:
flash messages was working fine in local when i moved it into production(cpanel) its not displaying. I am not getting any error or warning.
In controller, i am setting flash like this
Yii::app()->user->setFlash('success', "Slider updated Successfully.");
and in view,
<?php if (Yii::app()->user->hasFlash('success')): ?>
<div class="success">
<?php echo Yii::app()->user->getFlash('success'); ?>
</div>
<?php endif; ?>
Upvotes: 2
Views: 952
Reputation: 305
The Yii flash messages are stored in the PHP session variables. Are you able to set Session variables? Perhaps this will come in handy (Not able to set session variable in online server)
Upvotes: 1