Skip to content

Groupcontroller

wimmer edited this page Jan 17, 2013 · 1 revision

This controller extends from the CustomController. The Controller is responsible to treat the data and pass it to the view. A controller is structured in following actions:

  • ###function init() This function initializes the controller and sets the layout and title of the view.

  • ###function indexAction() Sets the logged in user

  • ###function listAction() Redirects if the user is not logged in

  • ###function viewAction() Passes all groups to the view

  • ###function removeAction() Removes the Group from the database

  • ###function leaveAction() If a user likes to leave a group, the action deletes his connection to the group from the database

  • ###function linkgroupAction() This action link one group with another group

Clone this wiki locally