Skip to content

Commit 8521091

Browse files
authored
improved README for codeigniter powered
1 parent 5cf6ab2 commit 8521091

File tree

1 file changed

+71
-3
lines changed

1 file changed

+71
-3
lines changed

README.md

Lines changed: 71 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,73 @@
1-
Grocery CRUD
1+
Codeigniter - Grocery CRUD
22
=============
3-
Grocery CRUD is a PHP and Codeigniter Framework library that creates a full functional CRUD system without the need to customise JavaScript or CSS.
43

5-
For more information, visit http://www.grocerycrud.com
4+
Grocery CRUD is a PHP/Codeigniter Framework library that creates a **full functional CRUD system without the need to customise JavaScript or CSS** on form generation or listing data.
5+
6+
For Original more information, visit http://www.grocerycrud.com
7+
8+
## FEATURES
9+
10+
* **easy CRUD helper/class with form autogenerator**. to get out that as html page.
11+
12+
## INSTALLING
13+
14+
Comes included with CodeigniterPowered, but for CI 2 or CI3:
15+
16+
**Requirements**
17+
18+
* Codeigniter 2.x or 3.x
19+
* PHP 5.3
20+
21+
**Manual controlled install**
22+
23+
**1)** Located your Codeigniter proyect and then download the repository at the `Applications` root directory
24+
25+
`wget https://github.com/codeigniterpower/codeigniter-grocery-crud/archive/master.tar.gz -O ci-grocerycrud.tar.gz`
26+
27+
**2)** The contents must be the files at that places:
28+
29+
* `config/grocery_crud.php`
30+
* `libraries/Grocery_CRUD.php`
31+
* `libraries/image_moo.php`
32+
* `models/grocery_crud_model.php`
33+
34+
**3)** Then, just In controlers or in the views:
35+
36+
``` php
37+
$crud = new grocery_CRUD();
38+
$crud->set_table('customers');
39+
$crud->columns('customerName','phone','addressLine1','creditLimit');
40+
$output = $crud->render();
41+
echo $output;
42+
```
43+
44+
Now the output wil renders the table contents as featured html table with input search and edit/add/delete butons.
45+
46+
47+
## CONFIGURATION
48+
49+
Wil be located at the `config/grocery_crud.php` file, and heres the documentation: https://www.grocerycrud.com/examples/3_lines_only
50+
51+
## USAGE
52+
53+
54+
```php
55+
$crud = new grocery_CRUD();
56+
$crud->set_table('customers')
57+
->set_subject('Customer')
58+
->columns('customerName','contactLastName','phone','city','country','creditLimit')
59+
->display_as('customerName','Name')
60+
->display_as('contactLastName','Last Name');
61+
$crud->fields('customerName','contactLastName','phone','city','country','creditLimit');
62+
$crud->required_fields('customerName','contactLastName');
63+
$output = $crud->render();
64+
$this->_example_output($output);
65+
```
66+
67+
## Credits
68+
69+
This is specific AD-HOC folk for Codeigniter-powered, see original project for.
70+
71+
- Jon LaBelle <contact@jonlabelle.com>
72+
73+
https://github.com/jonlabelle/ci-markdown/issues/new

0 commit comments

Comments
 (0)