Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Returning To Page With Pagination

$
0
0
Hi,

I am trying to redirect the update page to the admin management page with the correct pagination URL.

So the work flow is like this.

1. index.php/image/admin?Image_page=9

2. Click on a record to update
index.php/image/update/87

3. On save, redirect back to
index.php/image/admin?Image_page=9

I have got the logic working of redirecting back to a Image_page number, but I am using the image id to determine the page number.
So like ceil(PICTURE ID/10), since the pagination is set up to have ten images per page and at the moment, the divide by ten assumption holds, but as images are deleted it doesn't.

So my question, how can I get Image_page number on the update page?

I had some success using
Yii::app()->request->urlReferrer
but for some reason the Image_page=9 is not set when I try use it.

Is there are better way (not to mention how handy it would be in general), to pass variables / get / post data between pages?

Cheers!

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>