namespace Craft;
class Test_FormsController extends BaseController
{
protected $allowAnonymous = true;
public $session_id;
public function actionApply(){
$appl_template = "1";
$this->session_id = 15558145;
return $this->renderTemplate("apply/step".$appl_template.".html");
}
public function actionSaveDataStruct(){
echo 'session:'.$this->session_id.'<br />';
exit();
}
}
Hi guys i'm newbie on Craft and my question is:
acctionApply
loads form which will send to actionSaveDataStruct
, I set a class variable $session_id
on actionApply
but whenever the form submitted and goes to actionSaveDataStruct
, $this->session_id
become null again, how do I set variable that will never reset whenever the page load?