CRUD - CodeIgnighter & Grocery-CRUD
This blog tutorial is created to help you create a browser based (cloud) database application using MariaDB with CodeIgniter together with the Grocery-CRUD plugin that you can easily test through your localhost server on your desktop, on your LAN or via internet through your ISP.
- Download and install XAMPP on Windows OS or Apache, MariaDB (MySQL) and PHP on Linux.
- Download and install CodeIgniter3 in /xampp/htdocs or /var/www/html/ in Ubuntu under your website folder name.
- Download and install Grocery-CRUD application folders by merging them with the CodeIgniter3 folders in your proposed website.
- Use phpAdmin to create the MariaDB database for your website.
- Edit /application/config/database.php to point to your database as required.
- Edit /application/config/config.php to point to your database as needed.
You can follow the following online tutorials or read the user manuals online to customise your site to work with CRUD.
https://www.grocerycrud.com/https://www.grocerycrud.com/
Your database is managed by the file 'controller'.php that is located in /applications/controllers/ directory together with default files in the folder (index.html & welcome.php). An example of a controller file is 'Examples.php' that is provided by the Grocery-CRUD tutorial.
In /applications/views/example.php contains the list of tables in your database
to run the demo application:
/localhost/grocery-crud-demo/index.php/examples/
In /applications/views/example.php contains the list of tables in your database
to run the demo application:
/localhost/grocery-crud-demo/index.php/examples/
Comments
Post a Comment