- Need to add migration for make CRUD
- Migration step using CLI
- Run command php spark make:migration

- After that need to enter class name migration

- Will generate file on app/database/migrations

- Then run
php spark migrate
- Run command php spark make:migration
- Migration step using CLI
- After migration proceed to generate controllers file
- Controller step using CLI
- Run command php spark make:controller
- In CRUD scenario we can use –restful

- In CRUD scenario we can use –restful
- After that need to enter class name controller

- Then controllers file will be generated with function default Restful function

- Run command php spark make:controller
- Controller step using CLI
- Then generate model
- Model step using CLI
- Run command php spark make:model

- After that need to enter class name model

- Then model will be generated like this

- Setup allowed fields

- Run command php spark make:model
- Model step using CLI
- Then we will start with listing using function index
- add code for query data using model

- add index.php in folder students

- add code for view listing in index.php

- then go to app/config/routes.php setup routes for listing

- add code for query data using model
- Next we go to create
- In function new load view for create

- In view file add form code

- Then add code at function create for insert data

- Setup routes like this

- In function new load view for create
- After create we continue with Update
- Add code at function edit with view file


- Then we add function update

- Setup routes

- Add code at function edit with view file
- Lastly, we make function delete
- Just add process for delete at function delete

- Setup routes

- Just add process for delete at function delete
- Settle !!!
Note: Goodluck on your CRUD using CI4
