HeadlessController
class HeadlessController extends Headless (View source)
The headless controller.
Methods
static string
getTemplate()
Checks whether a custom headless template exists and returns its path.
from Headless
static Response
editTemplate()
Save the updated template or render the editor in case no template was posted.
static string
loadTemplate()
Get the content of the template in use.
static Response
resetTemplate()
Reset the headless template by deleting the custom template file.
Details
static string
getTemplate()
Checks whether a custom headless template exists and returns its path.
In case there is no custom template, the path to the default template is returned.
at line 62
static Response
editTemplate()
Save the updated template or render the editor in case no template was posted.
at line 82
static string
loadTemplate()
Get the content of the template in use.