Skip to content

Instantly share code, notes, and snippets.

@gin1314
Created December 10, 2012 03:33

Revisions

  1. gin1314 created this gist Dec 10, 2012.
    36 changes: 36 additions & 0 deletions gistfile1
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,36 @@
    <?php

    $config = array(
    'base_url' => site_url("csi_division/index"),
    'total_rows' => 200,
    'per_page' => 20,

    'first_link' => 'First',
    'first_tag_open' => '<li>',
    'first_tag_close' => '</li>',

    'last_link' => 'Last',
    'last_tag_open' => '<li>',
    'last_tag_close' => '</li>',

    'next_link' => '&gt;',
    'next_tag_open' => '<li>',
    'next_tag_close' => '</li>',

    'prev_link' => '&lt;',
    'prev_tag_open' => '<li>',
    'prev_tag_close' => '</li>',

    'cur_tag_open' => '<li class="active"><a href="javascript:void;">',
    'cur_tag_close' => '</a></li>',

    'num_tag_open' => '<li>',
    'num_tag_close' => '</li>',

    'full_tag_open' => '<div class="pagination"><ul>',
    'full_tag_close' => '</ul></div>',
    );

    $this->pagination->initialize($config);

    $this->data['csi_division_all'] = $this->csi_division->get_all();