Lecture 6

MVC – Advanced CodeIgniter

Caching

Why Do We Need It?

What type of Caching does CodeIgniter Support?

CodeIgniter provides a simple yet flexible caching mechanism that supports different types of caching:

Cache Config

Where is the cached file stored?

File uploads

Processing a File Upload

Create Routes

alt text

Create the View

View Code
alt text alt text

Create the Controller

alt text

Creating a View Cell

Take some parameters, and render some HTML back

What is Composer?

Only used composer to start codeigniter project

Sessions

Sessions are a fundamental aspect of web development, enabling web applications to store and access user data across multiple requests.

Why Use Sessions?

store and access data across multiple requests to website

Sessions in Codeigniter

Framework Integration:

Key Features

Login Example using Sessions

Routes Controllers
alt text alt text

Authentication vs Authorisation

Authentication

Authorisation