class Controller

Methods

static array
modules_paths()

Returns an array of module paths locations.

void
load_routes()

Loads the module routes if the routes.php file exists in the module directory.

string
getDir()

Gets the directory of the current class file.

string
getClassName()

Gets the short class name of the current class.

void
copyResources(array $options)

Copies resources from the module to the destination.

Details

at line 11
static array modules_paths()

Returns an array of module paths locations.

Return Value

array

The list of module paths.

at line 23
void load_routes()

Loads the module routes if the routes.php file exists in the module directory.

Return Value

void

at line 35
string getDir()

Gets the directory of the current class file.

Return Value

string

The directory path.

at line 45
string getClassName()

Gets the short class name of the current class.

Return Value

string

The class name.

at line 61
void copyResources(array $options)

Copies resources from the module to the destination.

Parameters

array $options

{ @type string $source The source directory. Default is the module directory. @type string $destination The destination type: "modules" or "project". Default is "modules". @type array $only List of resource types to copy (e.g., ['views', 'locales', 'src', 'config', 'additional']). @type array $additional Additional files or directories to copy, as ['source_path' => 'destination_path']. }

Return Value

void