https://github.com/ikoalmasdevgame/app-package-final
App Package New Final v3
https://github.com/ikoalmasdevgame/app-package-final
apache mysqli native php php-library php8 phpmyadmin
Last synced: about 1 year ago
JSON representation
App Package New Final v3
- Host: GitHub
- URL: https://github.com/ikoalmasdevgame/app-package-final
- Owner: IkoAlmasDevGame
- Created: 2025-03-04T04:24:58.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-19T06:58:49.000Z (about 1 year ago)
- Last Synced: 2025-05-19T07:47:57.299Z (about 1 year ago)
- Topics: apache, mysqli, native, php, php-library, php8, phpmyadmin
- Language: PHP
- Homepage:
- Size: 24.4 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# App Package New Final v3
Explanation on Core, Configs, Models, Controllers
Explanation on Core, Configs
The define function in the configs.php file in core\database is to detect DB_HOST, DB_USERNAME, DB_PASSWORD, DB_PORT, DB_DATABASE
Explanation on Models, Controllers
The MVC (Model-View-Controller) concept in CodeIgniter serves to separate application logic from presentation. Thus, application development becomes easier and more structured.
MVC Functions in CodeIgniter Separates data, logic, and presentation in web applications Allows web pages to load minimal scripts
Helps developers focus on the parts that need to be worked on first Makes it easier for developers to find bugs and fix them quickly
Makes it easier to develop in parallel Makes it easier to test and debug
Makes it easier to scalable and integrate with new features MVC Components in CodeIgniter
1. Model
Responsible for data, such as interacting with the database and performing CRUD (Create, Read, Update, Delete) operations
2. View
Interacts directly with users, usually in the form of HTML generated by the controller
3. Controller
Connects between Model and View, handles application logic, retrieves data from the Model, and sends it to the View
How to call data models and controllers
how to call data models and controllers for pure php or native php just type
$example = new model\Example_model();
$examples = new controllers\Example();