Giter VIP home page Giter VIP logo

codeigniter3.1-starter4's Introduction

CodeIgniter3.1-starter4

This project can be used as a starter for a webapp built with CodeIgniter 3.1.

This starter builds on CodeIgniter3.1-starter3, adding an entity model and enhancing the collection models to use it.

This starter adds a rich persistent data abstraction, initially in the form of the CSV_Model.

An example, using menu items at a fast food place...

data/menuitems.csv:

id,name,category,price
BM,Big Mac,entree,5.25
MF,Medium fried,side,2.00
LF,Large fries,side,3.00

application/models/themenu.php:

class Themenu extends CSV_Model {
  function __construct() {
    parent::__construct('../data/menuitems.csv','id');
  }
}

Usage inside some controller, taking advantage of the DataMapper interface implemented by the CSV_Model...

$this->load->model('themenu;);
$all_the_items = $this->themenu->all();
...
// get all of the entrees
$subset = $this->themenu->where('category','entree');
...

codeigniter3.1-starter4's People

Contributors

jim-parry avatar

Watchers

 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.