common_controller extends controller
Public SDK Controller.
Extend this class to implement HTTP controllers in your plugin while benefiting from the framework routing and middleware lifecycle.
Table of Contents
Methods
- error() : Response
- This method handles rendering the index page.
- example() : Response
- This method handles rendering the index page.
- index() : Response
- This method handles rendering the index page.
- not_found() : Response
- This method handles rendering the index page.
- test_module() : Response
- This method handles rendering the index page.
Methods
error()
This method handles rendering the index page.
public
error([mixed $debug_output = '' ]) : Response
Parameters
- $debug_output : mixed = ''
Tags
Attributes
- #[Route]
- $path: '/error'
- $name: 'error'
- $methods: ['GET']
Return values
Responseexample()
This method handles rendering the index page.
public
example() : Response
Tags
Attributes
- #[Route]
- $path: '/example'
- $name: 'example'
- $methods: ['GET']
Return values
Responseindex()
This method handles rendering the index page.
public
index() : Response
Tags
Attributes
- #[Route]
- $path: '/'
- $name: 'index'
- $methods: ['GET']
Return values
Responsenot_found()
This method handles rendering the index page.
public
not_found() : Response
Tags
Attributes
- #[Route]
- $path: '/not_found'
- $name: 'not_found'
- $methods: ['GET']
Return values
Responsetest_module()
This method handles rendering the index page.
public
test_module() : Response
Tags
Attributes
- #[Route]
- $path: '/test_module'
- $name: 'test_module'
- $methods: ['GET']