Just a simple CRUD (Create, Read, Update, Delete) with CodeIgniter Framework.
- PHP 5.6 or above
- Composer
- Clone/Download this repo to your local server
- XAMPP: path/to/xampp/htdocts
- Configure database setting at
application\config\database.php(hostname, username, password) - Change
base_urlsetting atapplication\config\config.phptohttp://localhost/ci-crud - Import
DB-with-auth.sqlto your SQL server(e.g. with phpMyAdmin) - Install libraries
- Open CMD/Terminal, go to
applicationfolder and runcomposer install
- Open CMD/Terminal, go to
- Just open your browser and accessing it
(e.g. http://localhost/ci-crud) - Login with
- Username: admin
- Password: 123456
- Explore and enjoy!
This example use phpoffice/phpword library, and will generate the document from template. Try it from the Example > PHPWord sidebar menu.
There are some commits for this examples, including bugs fix.
- [1] 52db53ee030f7b2291c852628dc877c41f3f4c56
- [2] 84c535aa05ed1badc5bafaaad227df07a1567173
- [3] 5ffde0a4df18a84f60eb706f6f0a367da86dfada
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.phpapplication/controllers/Auth.phpapplication/helpers/auth_helper.phpapplication/views/users/login-form.php
Try! Open your browser and access post controller (http://localhost/ci-crud/post).
After install, please do the following steps:
- Install dompdf library
- Open CMD/Terminal, go to
applicationfolder and runcomposer install
- Open CMD/Terminal, go to
- Create new directory at
assets/pdf-outputsand make it writable - Open
YOU_BASE_URL/index.php/example/dompdf - You are done!