GithubHelp home page GithubHelp logo

rohit413 / codeigniter-pagination-demo-with-search Goto Github PK

View Code? Open in Web Editor NEW

This project forked from chintan7027/codeigniter-pagination-demo-with-search

0.0 1.0 0.0 378 KB

A complete demo to search the database records with codeigniter pagination

License: Other

ApacheConf 0.01% PHP 99.66% HTML 0.33%

codeigniter-pagination-demo-with-search's Introduction

CodeIgniter-Pagination-Demo-With-Search

A complete demo to search the database and filter records with codeigniter pagination

#What is CodeIgniter

CodeIgniter 2 Open Source PHP Framework (originally from EllisLab)- a toolkit - for people who build web sites using PHP. Its goal is to enable you to develop projects much faster than you could if you were writing code from scratch, by providing a rich set of libraries for commonly needed tasks, as well as a simple interface and logical structure to access these libraries. CodeIgniter lets you creatively focus on your project by minimizing the amount of code needed for a given task.

Server Requirements

PHP version 5.4 or newer is recommended. This demo contains .htaccess to remove index.php. In order to take effect of these change your apcha is must enable with mod_rewrite ON

#Installation

  1. You can import Cities.sql sample database dump in your database server. Here i have created pagination database in mysql, and cities table to access the sample records.
  2. Clone the repository in your web directory and access the project using local web.

#Licence Cities.sql database is Created by Haneef Puttur
CodeIgniter 2.X version is access by understand and follow all the Terms and Conditions of The MIT License (MIT)

#State of the art if (!empty($_GET['cityFilter'])) { $config["base_url"] = base_url('Listing/index?cityFilter=' . $_GET['cityFilter']); } else { $config["base_url"] = base_url('Listing/index?cityFilter='); } $config["total_rows"] = $totalRecords; $config["per_page"] = $limit; $config['use_page_numbers'] = TRUE; $config['page_query_string'] = TRUE; $config['enable_query_strings'] = TRUE; $config['num_links'] = 2; $config['cur_tag_open'] = ' 

  • '; $config['cur_tag_close'] = '
  • '; $config['next_link'] = 'Next'; $config['prev_link'] = 'Previous'; $this->pagination->initialize($config); $str_links = $this->pagination->create_links(); $links = explode(' ', $str_links);

    codeigniter-pagination-demo-with-search's People

    Contributors

    chintan7027 avatar

    Watchers

     avatar

    Recommend Projects

    • React photo React

      A declarative, efficient, and flexible JavaScript library for building user interfaces.

    • Vue.js photo Vue.js

      🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

    • Typescript photo Typescript

      TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

    • TensorFlow photo TensorFlow

      An Open Source Machine Learning Framework for Everyone

    • Django photo Django

      The Web framework for perfectionists with deadlines.

    • D3 photo D3

      Bring data to life with SVG, Canvas and HTML. 📊📈🎉

    Recommend Topics

    • javascript

      JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

    • web

      Some thing interesting about web. New door for the world.

    • server

      A server is a program made to process requests and deliver data to clients.

    • Machine learning

      Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

    • Game

      Some thing interesting about game, make everyone happy.

    Recommend Org

    • Facebook photo Facebook

      We are working to build community through open source technology. NB: members must have two-factor auth.

    • Microsoft photo Microsoft

      Open source projects and samples from Microsoft.

    • Google photo Google

      Google ❤️ Open Source for everyone.

    • D3 photo D3

      Data-Driven Documents codes.