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:
yields the error:
thanks for the help
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
