Skip to content

Contentcontroller

wimmer edited this page Jan 17, 2013 · 2 revisions

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() Redirects if no user is logged in

  • ###function listAction() Delivers all contents (vision, ideas, challenge) to the view.

  • ###function listIdeasAction() Delivers all idea contents to the view.

  • ###function listVisionAction() Delivers all Vision contents to the view.

  • ###function listChallengeAction() Delivers all Challenge contents to the view.

  • ###function getContentAction() Delivers all contents, related to the default category to the view.

  • ###function addAction() Adds all contents to the view, the contents are filtered by section and category and it translates the content

  • ###function editAction() This Action updates the content from the database.

  • ###function removeAction() This Action removes a specific content from the database

Clone this wiki locally