GithubHelp home page GithubHelp logo

ci3_eloquent's Introduction

CodeIgniter 3.0.6 With Eloquent ORM

  1. Download CodeIgniter from CodeIgniter.com

  2. Extract CodeIgniter to your web root

  3. Install Illuminate Database package

    composer require illuminate/database
    
  4. Install Illuminate Events package

    composer require illuminate/events
    
  5. Add next lines to "composer.json" file

    ...
    "autoload": {
        "classmap": [
            "application/core",
            "application/models",
            "application/libraries"
        ]
    }
    ...
    
  6. Add next line to /index.php

    ...
    include_once('vendor/autoload.php');
    ...
    
  7. Copy "elo.php" to /application/libraries

  8. Adjust eloquent database(s) config on /application/libraries/elo.php

  9. Load eloquent library from /application/config/autoload.php

    ...
    $autoload['libraries'] = array('elo', 'database');
    ...
    
  10. Copy "My_Model.php" to /application/core

  11. Create new CI Model extend to My_Model

  12. Create new CI Controller

  13. Do composer update to mapping class, etc

    composer update
    
  14. Test & Debug.

  15. Done. :)

License

MIT License

ci3_eloquent's People

Contributors

iruwl avatar

Watchers

James Cloos avatar  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.