Code Monkey home page Code Monkey logo

scoumbourdis / grocery-crud Goto Github PK

View Code? Open in Web Editor NEW
1.0K 136.0 475.0 12.1 MB

Grocery CRUD is a PHP Codeigniter Framework library that creates a full functional CRUD system without the requirement of extra customisation to the JavaScripts or the CSS to do it so.

Home Page: http://www.grocerycrud.com

License: GNU General Public License v3.0

PHP 47.34% HTML 0.62% CSS 8.69% JavaScript 41.78% Shell 0.01% ActionScript 1.56%
grocery-crud php codeigniter codeigniter3

grocery-crud's Introduction

Grocery CRUD

Grocery CRUD is a PHP and Codeigniter Framework library that creates a full functional CRUD system without the need to customise JavaScript or CSS.

For more information, visit http://www.grocerycrud.com

grocery-crud's People

Contributors

ando-masaki avatar arif-rh avatar bijancot avatar buoncri avatar bzuro avatar carlospinedat avatar eanurku avatar erdenemunkh avatar ethaizone avatar gofrendiasgard avatar greysama avatar ipang-dwi avatar iradave avatar jaswdr avatar kaabi avatar kjarrio avatar ko31 avatar mrhung avatar nekomajin avatar painor avatar portapipe avatar q-- avatar rfkdot avatar rogeriopradoj avatar scoumbourdis avatar skoricit avatar vlakoff avatar webfikirleri avatar willmendesneto avatar zetzumarshen avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

grocery-crud's Issues

Ordering

Its a great system you have, but theres no system for ordering lists. Lets say I wanted to order a FAQ list. It would be awesome if I could just drag items to their place. Or have a different interface for doing so.

Double semicolon

./application/libraries/grocery_crud.php, line 220 says:

$field_info->input = $this->get_readonly_input($field_info,$value);;

(It ends with two semicolons.)

Make it easy to add new field types

I love you for making this, but adding a new field type (for example I want to be able to upload & crop easily in the crud interface) but it is really hard.

It's not really as easy as adding something to a swith case.

"add x" is not language dependant.

in dutch the grammar is:

"x add" -> "x toevoegen"

which is different to english. I would suggest using a printf to use the difference. Ill fork it.

Typo in language files

It's nothing major, I just noticed that "message_promt_delete_file" in all the language files dropped the second 'p' in 'prompt'.

flexigrid width is always 900px

Dear Scoumbourdis, I have found a solution for flexigrid width

at "assets / grocery_crud / themes / flexigrid / views / list.php" line 7, I change width of table to be 100%.

hope it helps, thank you for your good job...

A really rare scenario: Adding the same middle name twice at two set_relation_n_n makes the form to not save the data properly.

If you have insert twice the same middle table name at two set_relation_n_n it doesn't save the form data.
This is a really rare scenario and it is probably a wrong database structure , but it is still an issue...

For example:

$crud->set_relation_n_n('strutture', 'relazioni', 'strutture', 'idMultimedia', 'idStruttura', 'ramo');
$crud->set_relation_n_n('contenuti', 'relazioni', 'contenuti', 'idMultimedia', 'idContenuto', 'titolo','posizione');

The middle table ( "relazioni") is added twice.

unique_hash issue (not unique when having same method name in 2 diff. controllers)

Hi John,
First of all let me thank you or this great library.

Well, if you have in 2 different controllers the same method, the unique_hash will be the same and that will mess up the grid when it is loaded via ajax. For example i have 2 controllers products and orders, in both controllers i have a method called 'manage', in that method im using grocery_crud if i got to products/manage and i use the filter , cookies including my search params will be saved , if i go to orders/manage and use the filter there, the old cookies will be used and it shouldn't.

I solved this issue with adding the class name to the method name and hash it

protected function get_method_hash() {
    $ci = &get_instance();
    return md5($ci->router->class.'/'.$ci->router->method);
}

Bug fix: required_fields doesn't work for relation_n_n fields

Example:
$crud->set_relation_n_n('category', 'film_category', 'category', 'film_id', 'category_id', 'name');
$crud->required_fields(['category']);

Expected behaviour:

  • When the Category field is empty then we should get an error that the Category is required
  • When the Category field is not empty then we should not get any validation errors

Actual Results:

  • ๐Ÿ‘ When the Category field is empty then it throws an error that the Category is required
  • โŒ When the Category field is not empty then we are getting an error that the Category is required.

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.