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
i have problem with pagenation i am not able to see the content on the next page
Gaurish
January 2014
this is the pagenation cod which i am using but i am not able to se the next page content
$pagination = Pagination::forge('mypagination', array(
'pagination_url' => '
http://localhost/fuelphpn/public/oildemo/pagenation/oildemo/'
,
'uri_segment' => 2,
'total_items' => 10,
'per_page' => 2,
));
$rest = Model_Oil_Demo::query()
->select('id', 'title', 'body')
->order_by('id', 'ASC')
->limit($pagination->per_page)
->offset($pagination->offset)
->get();
$data2['oilt'] = $rest;
$data2['count'] = $pagination->render('
http://localhost/fuelphpn/public/oildemo/pagenation/oildemo/'
, $rest);
$view = View::forge('layouts/templateoil');
$view->content = View::forge('oil/demo/index');
$view->welcome_msg = View::forge('oil/demo/view1', $data2);
$view->title = View::forge('oil/demo/view2');
the url i am mention is this way
http://localhost/fuelphpn/public/oildemo/pagenation/oildemo/2
Harro
January 2014
You have defined
'uri_segment' => 2,
But in this URL
http://localhost/fuelphpn/public/oildemo/pagenation/oildemo/2
the segment containing the page number is 4 ?
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
January 2014