├── ligatcode
├── core
│ ├── settingjson.cfg
│ ├── helper.php
│ ├── fileRequest.json
│ ├── create_view_layout_sidebar.php
│ ├── create_pdf_library.php
│ ├── create_exportexcel_helper.php
│ ├── create_view_read.php
│ ├── Pager.php
│ ├── create_config_pagination.php
│ ├── create_model.php
│ ├── create_view_layout_ligatcode_pagination.php
│ ├── getfield.php
│ ├── create_view_list_pdf.php
│ ├── create_view_list_doc.php
│ ├── create_view_list.php
│ ├── connection.php
│ ├── create_view_form.php
│ ├── setting.php
│ ├── ligatcode.php
│ ├── process.php
│ ├── create_view_list_datatables.php
│ ├── create_controller.php
│ └── create_libraries_datatables.php
├── output
│ ├── views
│ │ ├── index.php
│ │ ├── siswa
│ │ │ ├── siswa_read.php
│ │ │ ├── siswa_form.php
│ │ │ └── siswa_list.php
│ │ ├── jurusan
│ │ │ ├── read_jurusan.php
│ │ │ ├── jurusan_read.php
│ │ │ ├── form_jurusan.php
│ │ │ ├── jurusan_form.php
│ │ │ ├── index_jurusan.php
│ │ │ └── jurusan_list.php
│ │ ├── groups
│ │ │ ├── groups_read.php
│ │ │ ├── groups_form.php
│ │ │ └── groups_list.php
│ │ ├── menu
│ │ │ ├── read_menu.php
│ │ │ ├── index_menu.php
│ │ │ └── form_menu.php
│ │ └── layout
│ │ │ └── ligatcode_pagination.php
│ └── config
│ │ └── index.php
├── views
│ └── layout
│ │ ├── header.php
│ │ ├── footer.php
│ │ ├── template.php
│ │ ├── navbar.php
│ │ └── ligatcode_pagination.php
├── .gitignore
├── getfield.php
└── index.php
├── assets
├── datatables
│ ├── images
│ │ ├── sort_asc.png
│ │ ├── sort_both.png
│ │ ├── sort_desc.png
│ │ ├── sort_asc_disabled.png
│ │ └── sort_desc_disabled.png
│ ├── dataTables.bootstrap.css
│ └── dataTables.bootstrap.js
└── bootstrap
│ ├── fonts
│ ├── glyphicons-halflings-regular.eot
│ ├── glyphicons-halflings-regular.ttf
│ ├── glyphicons-halflings-regular.woff
│ └── glyphicons-halflings-regular.woff2
│ ├── js
│ └── npm.js
│ └── css
│ └── bootstrap-theme.min.css
├── .htaccess
├── app
├── Views
│ └── layout
│ │ ├── sidebar.php
│ │ ├── header.php
│ │ ├── footer.php
│ │ ├── template.php
│ │ ├── navbar.php
│ │ └── ligatcode_pagination.php
└── Config
│ └── Pager.php
├── LICENSE
└── README.md
/ligatcode/core/settingjson.cfg:
--------------------------------------------------------------------------------
1 | {
2 | "target": "../app/",
3 | "copyassets": "0"
4 | }
--------------------------------------------------------------------------------
/assets/datatables/images/sort_asc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/irev/ci4-ligatcode/HEAD/assets/datatables/images/sort_asc.png
--------------------------------------------------------------------------------
/assets/datatables/images/sort_both.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/irev/ci4-ligatcode/HEAD/assets/datatables/images/sort_both.png
--------------------------------------------------------------------------------
/assets/datatables/images/sort_desc.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/irev/ci4-ligatcode/HEAD/assets/datatables/images/sort_desc.png
--------------------------------------------------------------------------------
/assets/datatables/images/sort_asc_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/irev/ci4-ligatcode/HEAD/assets/datatables/images/sort_asc_disabled.png
--------------------------------------------------------------------------------
/assets/datatables/images/sort_desc_disabled.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/irev/ci4-ligatcode/HEAD/assets/datatables/images/sort_desc_disabled.png
--------------------------------------------------------------------------------
/.htaccess:
--------------------------------------------------------------------------------
1 |
| Cancel |
| Cancel |
| Jurusan | |
| Cancel |
| Name | |
| Description | |
| Cancel |
| Name | : |
|---|---|
| Link | : |
| Icon | : |
| Is Active | : |
| Is Parent | : |
| ".label($row["column_name"])." | : \t |
|---|---|
| ".label($row["column_name"])." | : \t= \$data['".$row["column_name"]."']; ?> |
| No | 25 |Name | 26 |Link | 27 |Icon | 28 |Is Active | 29 |Is Parent | 30 |Action | 31 |
|---|---|---|---|---|---|---|
| 36 | | = $value['name'] ?> | 37 |= $value['link'] ?> | 38 |= $value['icon'] ?> | 39 |= $value['is_active'] ?> | 40 |= $value['is_parent'] ?> | 41 | 42 | READ 43 | EDITE 44 | DELETE 45 | 46 | | 47 | 48 | 49 |
Generator button, Generate AllFeatures added by Meedun
44 |Generator button, Generate AllFeatures added by Meedun
47 || No | "; 25 | foreach ($non_pk as $row) { 26 | if(isset($_POST['field_'.$row['column_name']]) && isset($_POST['generate'])) //meedun code selected filed 27 | { 28 | $string .= "\n\t\t" . label($row['column_name']) . " | "; 29 | } 30 | if(isset($_POST['generateall'])) //meedun code selected filed 31 | { 32 | $string .= "\n\t\t" . label($row['column_name']) . " | "; 33 | } 34 | } 35 | $string .= "\n\t\t 36 |
|---|---|---|
| "; 44 | 45 | foreach ($non_pk as $row) { 46 | if(isset($_POST['field_'.$row['column_name']]) && isset($_POST['generate'])) //meedun code selected filed 47 | { 48 | $string .= "\n\t\t | ". $row['column_name'] . " ?> | "; 49 | } 50 | if(isset($_POST['generateall'])) //meedun code selected filed 51 | { 52 | $string .= "\n\t\t". $row['column_name'] . " ?> | "; 53 | } 54 | } 55 | 56 | $string .= "\t 57 |
| No | "; 28 | foreach ($non_pk as $row) { 29 | if(isset($_POST['field_'.$row['column_name']]) && isset($_POST['generate'])) //meedun code selected filed 30 | { 31 | $string .= "\n\t\t" . label($row['column_name']) . " | "; 32 | } 33 | if(isset($_POST['generateall'])) //meedun code selected filed 34 | { 35 | $string .= "\n\t\t" . label($row['column_name']) . " | "; 36 | } 37 | } 38 | $string .= "\n\t\t 39 |
|---|---|---|
| "; 47 | 48 | foreach ($non_pk as $row) { 49 | if(isset($_POST['field_'.$row['column_name']]) && isset($_POST['generate'])) //meedun code selected filed 50 | { 51 | $string .= "\n\t\t | ". $row['column_name'] . " ?> | "; 52 | } 53 | if(isset($_POST['generateall'])) //meedun code selected filed 54 | { 55 | $string .= "\n\t\t". $row['column_name'] . " ?> | "; 56 | } 57 | } 58 | 59 | $string .= "\t 60 |
| No | "; 26 | foreach ($non_pk as $row) { 27 | if(isset($_POST['field_'.$row['column_name']]) && isset($_POST['generate'])) //meedun code selected filed 28 | { 29 | $string .= "\n\t\t" . label($row['column_name']) . " | "; 30 | } 31 | if(isset($_POST['generateall'])) //meedun code selected filed 32 | { 33 | $string .= "\n\t\t" . label($row['column_name']) . " | "; 34 | } 35 | } 36 | $string .= "\n\t\tAction | 37 |
|---|---|---|---|
| "; 46 | foreach ($non_pk as $row) { 47 | if(isset($_POST['field_'.$row['column_name']]) && isset($_POST['generate'])) //meedun code selected filed 48 | { 49 | $string .= "\n\t\t\t | = \$value['". $row['column_name'] . "'] ?> | "; 50 | } 51 | if(isset($_POST['generateall'])) //meedun code selected filed 52 | { 53 | $string .= "\n\t\t\t= \$value['". $row['column_name'] . "'] ?> | "; 54 | } 55 | } 56 | 57 | 58 | $string .= "59 | 60 | \">READ 61 | \">EDITE 62 | \" onclick=\"javascript: return confirm('Delete \\nAre You Sure ?')\">DELETE 63 | 64 | | 65 | 66 | 67 |
| No | 48 |Action | 49 |
|---|---|
| 55 | | 56 | id),'Read'); 58 | echo ' | '; 59 | echo anchor(site_url('siswa/update/'.$siswa->id),'Update'); 60 | echo ' | '; 61 | echo anchor(site_url('siswa/delete/'.$siswa->id),'Delete','onclick="javasciprt: return confirm(\'Are You Sure ?\')"'); 62 | ?> 63 | | 64 |
| No | 48 |Action | 49 |
|---|---|
| 55 | | 56 | id_jurusan),'Read'); 58 | echo ' | '; 59 | echo anchor(site_url('jurusan/update/'.$jurusan->id_jurusan),'Update'); 60 | echo ' | '; 61 | echo anchor(site_url('jurusan/delete/'.$jurusan->id_jurusan),'Delete','onclick="javasciprt: return confirm(\'Are You Sure ?\')"'); 62 | ?> 63 | | 64 |
| No | 48 |Jurusan | 49 |Action | 50 |
|---|---|---|
| 56 | | jurusan ?> | 57 |58 | id_jurusan),'Read'); 60 | echo ' | '; 61 | echo anchor(site_url('jurusan/update/'.$jurusan->id_jurusan),'Update'); 62 | echo ' | '; 63 | echo anchor(site_url('jurusan/delete/'.$jurusan->id_jurusan),'Delete','onclick="javasciprt: return confirm(\'Are You Sure ?\')"'); 64 | ?> 65 | | 66 |
| No | 48 |Name | 49 |Description | 50 |Action | 51 |
|---|---|---|---|
| 57 | | name ?> | 58 |description ?> | 59 |60 | id),'Read'); 62 | echo ' | '; 63 | echo anchor(site_url('groups/update/'.$groups->id),'Update'); 64 | echo ' | '; 65 | echo anchor(site_url('groups/delete/'.$groups->id),'Delete','onclick="javasciprt: return confirm(\'Are You Sure ?\')"'); 66 | ?> 67 | | 68 |
" . $folder . "";
73 | foreach ($nam as $key => $value) {
74 | if (file_exists('../../' . $value)) {
75 | echo '' . $value . ' ok';
76 | } else {
77 | echo '' . $value . ' file not found';
78 | }
79 | }
80 | }
81 | }
82 | ?>
83 | " . $folder . "";
91 | foreach ($nam as $key => $value) {
92 | if (file_exists($value)) {
93 | echo '' . $value . ' ok';
94 | } else {
95 | echo '' . $value . ' file not found';
96 | }
97 | }
98 | }
99 | }
100 | ?>
101 | | No | "; 63 | foreach ($non_pk as $row) { 64 | //$string .= "\n\t\t" . label($row['column_name']) . " | "; //Original Haviacode 65 | //Edit by Meedun 66 | if(isset($_POST['field_'.$row['column_name']]) && isset($_POST['generate'])) //meedun code selected filed 67 | { 68 | if($_POST['field_'.$row['column_name']]==1){ 69 | $string .= "\n\t\t" . label($row['column_name']) . " | "; 70 | } 71 | 72 | } 73 | if(isset($_POST['generateall'])) //meedun code selected filed 74 | { 75 | $string .= "\n\t\t" . label($row['column_name']) . " | "; 76 | } 77 | //Edit by Meedun 78 | } 79 | $string .= "\n\t\tAction | 80 |
|---|
(only Codeigniter 4)About : github: irev/ci4-ligatcode
218 |
219 | Codeigniter 4 CRUD Generator is a simple tool to automatically generate models, controllers and views from your tables. This tool is re-designed
220 | from the previous generator tool, Harviacode works for codeigniter 3. This tool will improve your writing code. This CRUD generator will perform
221 | complete CRUD operations, pagination, search, form *, form validation, export to excel, and export to word. This CRUD generator uses bootstrap 4 style.
222 | You will still need to change the result code for more customization.
223 |
Preparation before using this Codeigniter 4 CRUD Generator (Important) :
234 |app/Controller/BaseController.php, load database library, session library and url helper
236 | protected $helpers = ['html','text','form','session'];.env, set :.
241 | CTR+F DATABASEUsing this CRUD Generator :
252 |'Ligatcode' folder,view folder, 'asset' folder and .htaccess file into your project root folder.http://localhost/({yourprojectname}/ligatcode.FAQ :
258 |Update Codeigniter 4 CRUD Generator
270 | 271 |© 2020-= date('Y') ?> blog.simeedun.com
287 | 288 |