Jump to content

Zend framework


aniketto

Recommended Posts

Hi all,

I am new be in zend frameworl, so I need your help.

 

In my application I display a student list on a list.phtml form.

If user selects radio button in front of student name and presses 'Detail' button, the request is forwarded(_forward) to detailAction().

While forwarding I pass student_id as a parameter.

In detailAction detail.phtml displays student details and stores student_id is as a hidden parameter. In detail action I also set action as updateAction().

Now in detail.phtml form student Birthdate is editable text box. So if user presses update button birthdate should be updated. On update button update action gets called but as I do getform, new form is created and I can not retrieve the hidden field student_id field. So I cant do the update.

can anybody suggest how to solve this problem.

 

In updateAction() how can I get the form values which were stored in detailAction().

 

 

In short I am trying to do two things in same action.

If control is reached by _forward() use parameter in request to acquire database data and display .

Else if control is reached by pressing update button update birthday value and display form.

Is it possible to do this?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...