class Controller

Helper class for controller related console commands.

Constants

CONTROLLER_PATH

Path for controller classes.

Methods

static string
defaultTemplate(string $controllerName, string $layout)

The default template for a new controller.

static string
resourceTemplate(string $controllerName, string $layout)

The template that contains additional useful functions for a controller.

Details

at line 21
static string defaultTemplate(string $controllerName, string $layout)

The default template for a new controller.

Parameters

string $controllerName

The name of the controller.

string $layout

The layout to be set.

Return Value

string

The contents for a new controller.

at line 50
static string resourceTemplate(string $controllerName, string $layout)

The template that contains additional useful functions for a controller.

Parameters

string $controllerName

The name of the controller.

string $layout

The layout to be set.

Return Value

string

The contents for a new controller.