An open API service indexing awesome lists of open source software.

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

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();