Jet\MVC_Controller_Default

Abstraktní třída Jet\MVC_Controller_Default je výchozí třídou, od které mohou dědit vaše kontrolery.

The purpose is to solve a common request in the normal Jet MVC mode. Of course, it inherits from the abstract class Jet\MVC_Controller and actually differs only in the implementation of the handleNotAuthorized method, which is used to handle unauthorized requests (for example, a visit to a page for which the logged-in user has insufficient permissions, or no user is logged in). The implementation of this method does this by informing the router of the status and setting the status, but no longer sending any response to the user. This is done only on the basis of evaluating the state of the router..

Previous chapter
Controller (Jet\MVC_Controller class)
Next chapter
Jet\MVC_Controller_REST