Yii Framework Forum: after edit back to right page - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

after edit back to right page CPagination Rate Topic: -----

#1 User is offline   bas_vdl 

  • Standard Member
  • PipPip
  • Yii
  • Group: Members
  • Posts: 215
  • Joined: 01-April 09

Posted 09 November 2009 - 03:53 PM

Hello guys,

can you bring in some idea. i need a solution for the following problemm.

i have implmented CPagination. Imagine you're on page 6, click on the edit button to edit a record. After you're done editing you push the apply butten to save the record. After the apply you click on the save button... but that wil send you to the records page 1 insted of page 6...

what is the best idea to return to page 6 with the results?

Start position >> post/list/page/6.html
click on edit >> post/edit/id/12.html
click on apply >> post/edit/id/12.html
click on apply >> post/edit/id/12.html
click on save >> post/list/page/6.html instead of post/list.html
0

#2 User is offline   datashaman 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 56
  • Joined: 27-September 09
  • Location:Cape Town, South Africa

Posted 10 November 2009 - 01:27 AM

View Postbas_vdl, on 09 November 2009 - 03:53 PM, said:

Hello guys,

can you bring in some idea. i need a solution for the following problemm.

i have implmented CPagination. Imagine you're on page 6, click on the edit button to edit a record. After you're done editing you push the apply butten to save the record. After the apply you click on the save button... but that wil send you to the records page 1 insted of page 6...

what is the best idea to return to page 6 with the results?

Start position >> post/list/page/6.html
click on edit >> post/edit/id/12.html
click on apply >> post/edit/id/12.html
click on apply >> post/edit/id/12.html
click on save >> post/list/page/6.html instead of post/list.html


Send the current page number GET parameter to the form, store it in a hidden element, and then redirect to the page after the form is validated and saved, using the hidden page number.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users