UncleCheese\Green\Controller
A controller used for rendering Green page types, either through direct URL access, or from the database.
Synopsis
class Controller
extends ContentController
{
- // methods
- protected DesignModule|bool findModule()
- protected string handleAction()
- protected boolean isGreenPage()
Hierarchy
Extends
- ContentController
Methods
protected
- findModule() — Finds the DesignModule object, whether through the attached data record or through the public_url match
- handleAction() — Intercepts the handleAction method to force a customised viewer
- isGreenPage() — Returns true if this controller is bound to a "real" page, as opposed to a dummy page used for direct access