40. }
41.
42. $totalRow = Perpa\Product::totalRow( $where );
43. $products = Perpa\Product::result( $where, $page_size );
44. $pager_info = Pati\Pager::info( $totalRow, $page_size );
45.
46. $pager = \Pagination::start( \URI::e1() )
47. ->url( 'product' )
48. ->limit( $page_size )
49. ->totalRows( $totalRow )
50. ->create();
51.
52. View::pageTitle( 'Perpa Firmalarının Ürünleri / Hizmetleri' )
53. ->products( $products )
54. ->pager_info( $pager_info )
55. ->pager( $pager );
56. }
57.
58. public function company()
59. {
223. }
224.
225. /**
226. * Sets the total number of records.
227. *
228. * @param int $totalRows
229. *
230. * @return Paginator
231. */
232. public function totalRows(int $totalRows) : Paginator
233. {
234. $this->settings['totalRows'] = $totalRows;
235.
236. return $this;
237. }
238.
239. /**
240. * Sets the number of page links to be displayed at one time.
241. *
242. * @param int $countLinks