public function action_index()
 {
     $pagination = \Fuel\Core\Pagination::forge('customers', array('pagination_url' => \Fuel\Core\Config::get('pagination.pagination_url', '') . 'admin/customers/index/', 'total_items' => Model_Customer::count(), 'per_page' => \Fuel\Core\Config::get('pagination.per_page', 10), 'num_links' => \Fuel\Core\Config::get('pagination.num_links', 10), 'show_first' => \Fuel\Core\Config::get('pagination.show_first', false), 'show_last' => \Fuel\Core\Config::get('pagination.show_last', false), 'uri_segment' => \Fuel\Core\Config::get('pagination.uri_segment', 4)));
     $data['customers'] = Model_Customer::find('all', array('order_by' => array('name' => 'asc'), 'limit' => $pagination->per_page, 'offset' => $pagination->offset));
     $data['pagination'] = $pagination;
     $this->template->title = "Customers";
     $this->template->content = View::forge('admin/customers/index', $data, false);
 }
 public function action_index()
 {
     $config = Fuel\Core\Config::get('pagination');
     $pagination = Fuel\Core\Pagination::forge('admin.currencies', $config);
     $pagination->total_items = Model_Customer::count();
     $data['pagination'] = $pagination;
     $data['currencies'] = Model_Currency::find('all', array('order_by' => array(array('country', 'asc')), 'limit' => $pagination->per_page, 'offset' => $pagination->offset));
     $this->template->title = "Currencies";
     $this->template->content = View::forge('admin/currencies/index', $data);
 }
 public function action_index()
 {
     $config = \Fuel\Core\Config::get('pagination');
     $pagination = \Fuel\Core\Pagination::forge('customers', $config);
     $pagination->total_items = Model_Customer::count();
     $data['customers'] = Model_Customer::find('all', array('limit' => $pagination->per_page, 'offset' => $pagination->offset));
     $data['pagination'] = $pagination;
     $this->template->title = "Customers » Listing";
     $this->template->content = View::forge('admin/customers/index.twig', $data);
 }