Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Redirect From Widget ?

$
0
0
I was reading this forum post which says why redirecting from the widget is a bad MVC practice but may be good from the DRY point of view.

Forget for the moment, good or bad - the question is how do i actually redirect from a widget ?
This code:
$this->redirect(array('view','site/confirmsubscription'));


yields the error:

Quote

SubscriberFormWidget and its behaviors do not have a method or closure named "redirect".


thanks for the help ::)

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>