├── .htaccess
├── LICENSE
├── README.md
├── app
├── Config
│ └── Pager.php
└── Views
│ └── layout
│ ├── footer.php
│ ├── header.php
│ ├── ligatcode_pagination.php
│ ├── navbar.php
│ ├── sidebar.php
│ └── template.php
├── assets
├── bootstrap
│ ├── css
│ │ ├── bootstrap-theme.css
│ │ ├── bootstrap-theme.css.map
│ │ ├── bootstrap-theme.min.css
│ │ ├── bootstrap-theme.min.css.map
│ │ ├── bootstrap.css
│ │ ├── bootstrap.css.map
│ │ ├── bootstrap.min.css
│ │ └── bootstrap.min.css.map
│ ├── fonts
│ │ ├── glyphicons-halflings-regular.eot
│ │ ├── glyphicons-halflings-regular.svg
│ │ ├── glyphicons-halflings-regular.ttf
│ │ ├── glyphicons-halflings-regular.woff
│ │ └── glyphicons-halflings-regular.woff2
│ └── js
│ │ ├── bootstrap.js
│ │ ├── bootstrap.min.js
│ │ └── npm.js
├── datatables
│ ├── dataTables.bootstrap.css
│ ├── dataTables.bootstrap.js
│ ├── images
│ │ ├── sort_asc.png
│ │ ├── sort_asc_disabled.png
│ │ ├── sort_both.png
│ │ ├── sort_desc.png
│ │ └── sort_desc_disabled.png
│ └── jquery.dataTables.js
└── js
│ └── jquery-1.11.2.min.js
└── ligatcode
├── .gitignore
├── core
├── Pager.php
├── bootstrap.min.css
├── connection.php
├── create_config_pagination.php
├── create_controller.php
├── create_exportexcel_helper.php
├── create_libraries_datatables.php
├── create_model.php
├── create_pdf_library.php
├── create_view_form.php
├── create_view_layout_ligatcode_pagination.php
├── create_view_layout_sidebar.php
├── create_view_list.php
├── create_view_list_datatables.php
├── create_view_list_doc.php
├── create_view_list_pdf.php
├── create_view_read.php
├── fileRequest.json
├── getfield.php
├── helper.php
├── ligatcode.php
├── process.php
├── setting.php
└── settingjson.cfg
├── getfield.php
├── index.php
├── output
├── config
│ └── index.php
└── views
│ ├── groups
│ ├── groups_form.php
│ ├── groups_list.php
│ └── groups_read.php
│ ├── index.php
│ ├── jurusan
│ ├── form_jurusan.php
│ ├── index_jurusan.php
│ ├── jurusan_form.php
│ ├── jurusan_list.php
│ ├── jurusan_read.php
│ └── read_jurusan.php
│ ├── layout
│ └── ligatcode_pagination.php
│ ├── menu
│ ├── form_menu.php
│ ├── index_menu.php
│ └── read_menu.php
│ └── siswa
│ ├── siswa_form.php
│ ├── siswa_list.php
│ └── siswa_read.php
└── views
└── layout
├── footer.php
├── header.php
├── ligatcode_pagination.php
├── navbar.php
└── template.php
/.htaccess:
--------------------------------------------------------------------------------
1 |
2 | Require all denied
3 |
4 |
5 | Deny from all
6 |
7 |
--------------------------------------------------------------------------------
/LICENSE:
--------------------------------------------------------------------------------
1 | MIT License
2 |
3 | Copyright (c) 2020 Meedun
4 |
5 | Permission is hereby granted, free of charge, to any person obtaining a copy
6 | of this software and associated documentation files (the "Software"), to deal
7 | in the Software without restriction, including without limitation the rights
8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9 | copies of the Software, and to permit persons to whom the Software is
10 | furnished to do so, subject to the following conditions:
11 |
12 | The above copyright notice and this permission notice shall be included in all
13 | copies or substantial portions of the Software.
14 |
15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21 | SOFTWARE.
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # ci4-ligatcode
2 | [](https://blog.simeedun.com)
3 | [](https://github.com/irev/ci4-ligatcode/blob/master/LICENSE)
4 | 
5 | 
6 | 
7 |
8 | ### Codeigniter 4 CRUD Generator 1.0 (only Codeigniter 4)
9 | About :
10 | Codeigniter 4 CRUD Generator is a simple tool to automatically generate models, controllers and views from your tables. This tool is re-designed from the previous generator tool, Harviacode works for codeigniter 3. This tool will improve your writing code. This CRUD generator will perform complete CRUD operations, pagination, search, form *, ~~form validation, export to excel, and export to word~~. This CRUD generator uses bootstrap 4 style. You will still need to change the result code for more customization.
11 |
12 | ## TASK lISH :clock10:
13 | - [x] CRUD Generator
14 | - [x] MODEL, VIEW, CONTROLER
15 | - [x] Tabel Paging
16 | - [ ] form validation
17 | - [ ] \(Optional) export excel :soon:
18 | - [ ] \(Optional) export word :soon:
19 | - [ ] \(Optional) export pdf :soon:
20 |
21 | #
22 |
23 | * generate textarea and text input only
24 | :fire: Codeigniter 4 CRUD Generator Please visit and like [blog.simeedun.com](blog.simeedun.com) for more info and PHP tutorials.
25 | * :fire: Codeigniter 3 CRUD Generator Please visit and like [harviacode.com](harviacode.com) for more info and PHP tutorials.
26 |
27 | ## Preparation before using this Codeigniter 4 CRUD Generator (Important) :
28 |
29 | On Controller `app/Controller/BaseController.php` , load `database library`, `session library` and `url helper`
30 |
31 | ```
32 | protected $helpers = ['html','text','form','session'];
33 | ```
34 |
35 | On file `.env` setting DATABASE, Find `CTR+F`
36 |
37 |
38 | ```
39 | database.default.hostname = localhost
40 | database.default.database = database
41 | database.default.username = username
42 | database.default.password = password
43 | database.default.DBDriver = MySQLi
44 | ```
45 |
46 | #### Using this CRUD Generator :
47 |
48 | Simply put 'Ligatcode' folder,view folder, 'asset' folder and .htaccess file into your project root folder.
49 | Open http://localhost/{yourprojectname}/ligatcode.
50 | Select table and push generate button.
51 | FAQ :
52 |
53 | Select table show no data. Make sure you have correct database configuration on application/config/database.php and load database library on autoload.
54 | Error chmod on mac and linux. Please change your application folder and harviacode folder chmod to 777
55 | Error cannot Read, Update, Delete. Make sure your table have primary key.
56 |
57 | #### Update Codeigniter 4 CRUD Generator
58 |
59 | ##### V.1.0 (meedun) - 30 August 2020
60 | * Add the displayed database field selector
61 | * construct (model, view and controller) for Codeigniter framework version 4.0.4
62 | * Support custom page layout, built-in features of Codeigniter 4 This feature only affects the Generator button, ignored in Generate All button
63 | #
64 |
65 | `las't named \*harviacode\* to \*ligatcode\*`
66 |
67 | @radenrap/aci-harviacode What do you think about these updates?
68 |
69 | #
70 | © 2020-2020 blog.simeedun.com
71 |
--------------------------------------------------------------------------------
/app/Config/Pager.php:
--------------------------------------------------------------------------------
1 | 'CodeIgniter\Pager\Views\default_full',
24 | 'default_simple' => 'CodeIgniter\Pager\Views\default_simple',
25 | 'default_head' => 'CodeIgniter\Pager\Views\default_head',
26 | //-------------------- using ligatcode ----------------------------
27 | 'ligatcode_pagination' => 'App\Views\layout\ligatcode_pagination'
28 | //-------------------- using ligatcode ----------------------------
29 | ];
30 |
31 | /*
32 | |--------------------------------------------------------------------------
33 | | Items Per Page
34 | |--------------------------------------------------------------------------
35 | |
36 | | The default number of results shown in a single page.
37 | |
38 | */
39 | public $perPage = 20;
40 | }
41 |
--------------------------------------------------------------------------------
/app/Views/layout/footer.php:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |