https://github.com/ngekoding/ci-crud
Just a simple CodeIgniter CRUD example
https://github.com/ngekoding/ci-crud
Last synced: 10 months ago
JSON representation
Just a simple CodeIgniter CRUD example
- Host: GitHub
- URL: https://github.com/ngekoding/ci-crud
- Owner: ngekoding
- License: mit
- Created: 2018-10-27T03:27:34.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-07-06T03:09:42.000Z (over 3 years ago)
- Last Synced: 2025-04-03T02:23:01.707Z (11 months ago)
- Language: PHP
- Size: 2.14 MB
- Stars: 3
- Watchers: 1
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- Contributing: contributing.md
- License: license.txt
Awesome Lists containing this project
README
# CodeIgniter CRUD
Just a simple CRUD (Create, Read, Update, Delete) with CodeIgniter Framework.
## Requirements
- PHP 5.6 or above
- Composer
## How to install
1. Clone/Download this repo to your local server
- XAMPP: path/to/xampp/htdocts
2. Configure database setting at `application\config\database.php` (hostname, username, password)
3. Change `base_url` setting at `application\config\config.php` to `http://localhost/ci-crud`
4. Import `DB-with-auth.sql` to your SQL server `(e.g. with phpMyAdmin)`
5. Install libraries
- Open CMD/Terminal, go to `application` folder and run `composer install`
6. Just open your browser and accessing it `(e.g. http://localhost/ci-crud)`
7. Login with
- Username: admin
- Password: 123456
8. Explore and enjoy!
## Features
#### Create .docx document from template (PHPWord Example) @2022-07-06
This example use `phpoffice/phpword` library, and will generate the document from template. Try it from the **Example > PHPWord** sidebar menu.
#### DataTables Server-side @04-28-2022
There are some commits for this examples, including bugs fix.
- [1] 52db53ee030f7b2291c852628dc877c41f3f4c56
- [2] 84c535aa05ed1badc5bafaaad227df07a1567173
- [3] 5ffde0a4df18a84f60eb706f6f0a367da86dfada
#### Simple Auth @2019-12-19
Please use `DB-with-auth.sql` to make auth working.
This auth feature is very simple, take a look to these files.
- `application/config/autoload.php`
- `application/controllers/Auth.php`
- `application/helpers/auth_helper.php`
- `application/views/users/login-form.php`
Try! Open your browser and access post controller `(http://localhost/ci-crud/post)`.
#### Generate PDF with DOMPDF @2019-02-19
After install, please do the following steps:
1. Install dompdf library
- Open CMD/Terminal, go to `application` folder and run `composer install`
2. Create new directory at `assets/pdf-outputs` and make it writable
3. Open `YOU_BASE_URL/index.php/example/dompdf`
4. You are done!