Love Fuel?
Donate
About
Forums
Discussions
Login
FuelPHP Forums
Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
General
iam working on pagenation uri_segment
Gaurish
February 2014
i am trying to create segment which has a parmeter like
page?batchcodename=batchcode&page=2
i have created a segment as given below
'pagination_url' => '',
'uri_segment' => '?batchcode='.Input::get('
batchcodename
').'&page',
'total_items' => $ctr[0]['counts'],
'per_page' => 20,
but when pagenation like is created i am recive the link as given below
/page?%3Dbatchcode%3Dideabase58%26page=2
due to this on the next page i am not reciving the batch code
can u tell em how to define the url segment with on paramete in it
Harro
February 2014
Accepted Answer
It doesn't work like that.
'uri_segment' is either a number (if you use uri segments) or a string (if you use GET variables).
so it should be
'uri_segment' => 'page',
the rest should be part of the pagination_url, which is used to construct the final URL.
Add a Comment
Howdy, Stranger!
It looks like you're new here. If you want to get involved, click one of these buttons!
Sign In
Apply for Membership
Categories
All Discussions
5,089
General
↳ General
3,364
↳ Job Board
13
↳ Installation & Setup
214
Packages
↳ Oil
213
↳ Orm
700
↳ Auth
261
Development
↳ Tips and Tutorials
126
↳ Code share
145
↳ Applications
52
In this Discussion
Harro
February 2014