
$items_ar = Books_Model::arrivals_count()->nr; 'base_url' => 'home/index/page_ar', 'uri_segment' => 'page_ar', 'total_items' => $items_ar, 'items_per_page' => 10, 'style' => 'PunBB', 'auto_hide' => true ); $this->pagination_ar = new Pagination($config_ar); $limit_ar = $config_ar['items_per_page']; $offset_ar = $this->pagination_ar->sql_offset(); $this->template->content->arrivals = Books_Model::arrivals_paging($limit_ar,$offset_ar); $items_dp = Books_Model::departures_count()->nr; 'base_url' => 'home/index/page_dp', 'uri_segment' => 'page_dp', 'total_items' => $items_dp, 'items_per_page' => 10, 'style' => 'PunBB', 'auto_hide' => true ); $this->pagination_dp = new Pagination($config_dp); $limit_dp = $config_dp['items_per_page']; $offset_dp = $this->pagination_dp->sql_offset(); $this->template->content->departures = Books_Model::departures_paging($limit_dp, $offset_dp);
Czy jest tu jakiś błąd powodujący takie działanie??