SilverStripe\CMS\Controllers\ModelAsController
ModelAsController deals with mapping the initial request to the first {@link SiteTree}/{@link ContentController} pair, which are then used to handle the request.
Synopsis
class ModelAsController
extends Controller
implements
NestedController
{
- // members
- private static array $extensions = ;
- // methods
- public static ContentController controller_for()
- protected void init()
- protected void beforeHandleRequest()
- public HTTPResponse handleRequest()
- public ContentController getNestedController()
Hierarchy
Extends
- SilverStripe\Control\Controller
Implements
- SilverStripe\Control\NestedController
Tasks
Line | Task |
---|---|
147 | Refactor out module specific code |
Members
private
- $extensions
Methods
protected
public
- controller_for() — Get the appropriate {@link ContentController} for handling a {@link SiteTree} object, link it to the object and return it.
- getNestedController()
- handleRequest()