I need to store login_id to hidden variable for storing it in the database. How do i store it? after login i store the login_id like this $this->getUser()->setAttribute('client_id',$client_id);
and i set up widget in my base class
$this->setWidgets(array(
'id' => new sfWidgetFormInputHidden(),
'client_id' => new sfWidgetFormInputHidden(array(),array('value'=>'3')),));
how can i access client’s login_id in my base class or is there any other way to set login_id to a hidden variable? Please help me. thanks in advance
in you action when you create the form: