Hi i am new , i need some clarifications,
before calling a view i had two values in my controller, and i pass that value to form ,after some editing process newly posted values are only coming to controller,
but i need that previous values also, can any one help me to solve this
Can you use hidden fields in the form to retain the previous values?
Thanks for your response, but i cant get the value in that
and my code is…
controller…
public function employeeactivityAction()
{
try{
$empModel = new Timemanagement_Model_empact();
$user_id=$this->_request->getParam('user_id');
$sel_date=$this->_request->getParam('date');
$this->view->ermsg = '';
$this->view->userID = $user_id;
$this->view->selDate = $sel_date;
$clientsForm = new Timemanagement_Form_empact(array('userID' => $user_id));
$this->view->form = $clientsForm;
}
catch(Exception $e)
{
$this->view->ermsg = 'nodata';
}
if($this->getRequest()->getPost()){
if($clientsForm->isValid($this->_request->getPost())){
$type_Entry =$this->_request->getParam('type_Of_Entry');
$level_Intensity=$this->_request->getParam('level_Of_Intensity');
$description = $this->_request->getParam('description');
//$date = new Zend_Date();
$temp=$this->_request->getParam('user_ID');
error_log("temp userid:".$temp);
error_log("temp level:".$level_Intensity);
$data = array('emp_id'=>25,
'type_of_entry'=>$type_Entry,
'level_of_intensity'=>$level_Intensity,
'activity_desc'=>trim($description),
'date'=>$date
);
}
please help me to solve this issue…
my form page is
$user_id = $this->getAttrib(‘userID’);
receving the userid like this
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.