Hello,
I’m new to Yii so I hope my problem will turn out to be easy and fast to answer.
I’ve created multipage form, which saves each step into pageStat with:
$this->setPageStat('step1',$_POST['form']);
After saving all data to DB, I’d like to clear pageStat to prevent filing form with previously used data.
I’ve tried:
$this->setPageState('step1',null);
or
$this->clearPageStates();
and none of this works permanent - when I write:
$this->setPageState('step1',null);
echo $this->getPageState('step1');
the return is empty, but when I remove first line and refresh page - the value of step2 returns.
Thus my question is - how to permanenty clear value of pageStat?