Ezio Posted November 9, 2013 Share Posted November 9, 2013 (edited) How do i display a message in yii with a link using "setflash" in my controller it is: Yii::app()->user->setFlash('index','Password Reset Successful click here to login'); and in my view: echo Yii::app()->user->getFlash('index'); what i want to do is the "click here" text would be a link to the login page(site/login).. ...any ideas?? Edited November 9, 2013 by Ezio Link to comment Share on other sites More sharing options...
Ezio Posted November 11, 2013 Author Share Posted November 11, 2013 somewhat achieved it: echo Yii::app()->user->getFlash('successmsg');echo CHtml::link('Login Here', array('site/login')); Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now