Menu

## NavigationController extends Controller
in package

NavigationController.php : 25

Class NavigationController

Handles academic year navigation and selection for admin users. Responsible for fetching academic year lists and updating the currently selected academic year in cache.

### Table of Contents

#### Methods

index() : void
  Set the selected academic year in cache.
list() : string
  Get the list of academic years for the logged-in user's school.

### Methods

#### index()

NavigationController.php : 62

Set the selected academic year in cache.

`public index(Request $request) : void`

Clears existing academic year cache values and stores the newly selected academic year ID.

##### Parameters

$request : Request

#### list()

NavigationController.php : 35

Get the list of academic years for the logged-in user's school.

`public list() : string`

Returns all academic years ordered by name along with the currently active academic year.

##### Return values

string —

JSON encoded academic year list and current year

## Search results