Answers for "yii1 set flash"

1

yii1 set flash

<?php if(Yii::app()->user->hasFlash('contact')): ?>

<div class="flash-success">
	<?php echo Yii::app()->user->getFlash('contact'); ?>
</div>

<?php endif; ?>
Posted by: Guest on October-20-2020
0

yii1 set flash

Yii::app()->user->setFlash('contact','Thank you for contacting us. We will respond to you as soon as possible.');
Posted by: Guest on October-20-2020

Browse Popular Code Answers by Language