Skip to content

6.2.2 Controllers

Daria Lewandowska edited this page Mar 7, 2018 · 5 revisions

A controller is a listener for actions, when an action appears the controller catches it and modifies the model for output. Then it converts the response, send it to the view so the requested information is shown. The following controllers are implemented and their basic tasks described below.

  • AccountController - Login and Logout
  • ClassesController - Showing, creating, editing and removing classes.
  • FetchDataController - Converting list of subjects or classes to JSON-format.
  • HomeController - Showing startpage, contains all the functions for sorting, filtering and searching.
  • IktsController - Showing, creating, editing and removing tools. Also adding and removing staff from tools.
  • ProjectsController - Showing, creating, editing and removing projects. Also adding and removing staff from projects.
  • StaffsController - Showing, creating, editing and removing staff.
  • SubjectsController - Showing, creating, editing and removing subjects.