Lesson 9 - CRUD Operations with CodeIgniter 4

0.0(0)
Studied by 0 people
call kaiCall Kai
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/17

encourage image

There's no tags or description

Looks like no tags are added yet.

18 Terms

1
New cards

CRUD

Is the foundation of most web applications.

2
New cards

Create → Add new records

Read → Retrieve and display data

Update → Modify existing data

Delete → Remove data from storage

CRUD stands for:

3
New cards

Model-View-Controller (MVC)

CodeIgniter uses the ________________ pattern:

4
New cards

Model

Handles database interaction

5
New cards

View

Displays information to the user

6
New cards

Controller

Manages requests and responses

7
New cards

Models

Manage CRUD interaction with the database.

8
New cards

Controller

Connects user actions to the model and views.

9
New cards

Displaying Data (READ)

Create a view to display the data using from our Model.

10
New cards

php spark serve

How to run codeigniter?

11
New cards

Inserting Data

Create a form (view) to accept new user in our database.

12
New cards

Edit and Update

Create a form (view) to select a record to update.

13
New cards

Delete Record

Update the controller to remove a record from the database.

14
New cards

Search a Record

Create a form to search records from the database

15
New cards

app/config/Database.php

hostname = 'localhost'

username = 'root'

password = ''

database = 'crud_db'

Make sure to replace the hostname, username, password, and database fields with the correct values based on your environment.

16
New cards

app/Views/user_edit.php

Create edit view

17
New cards

app/Config/Routes.php

Add route for Edit and Update

18
New cards

app/Views/user_create.php

Create view