Craft Themes (4.x)

CreateController extends Controller
in package

Table of Contents

actionBlock()  : int
Create a new block class for a theme
actionBlockProvider()  : int
Create a new block provider class for a theme
actionFieldDisplayer()  : int
Create a new field displayer class for a theme
actionFileDisplayer()  : int
Create a new file displayer class for a theme
actionTheme()  : int
Creates a new theme

Methods

actionBlock()

Create a new block class for a theme

public actionBlock(string $theme, string $name[, string $handle = '' ][, string $description = '' ][, string $className = '' ]) : int
Parameters
$theme : string
$name : string
$handle : string = ''
$description : string = ''
$className : string = ''
Return values
int

actionBlockProvider()

Create a new block provider class for a theme

public actionBlockProvider(string $theme, string $name[, string $handle = '' ][, string $className = '' ]) : int
Parameters
$theme : string
$name : string
$handle : string = ''
$className : string = ''
Return values
int

actionFieldDisplayer()

Create a new field displayer class for a theme

public actionFieldDisplayer(string $theme, string $name[, string $handle = '' ][, string $className = '' ]) : int
Parameters
$theme : string
$name : string
$handle : string = ''
$className : string = ''
Return values
int

actionFileDisplayer()

Create a new file displayer class for a theme

public actionFileDisplayer(string $theme, string $name[, string $handle = '' ][, string $className = '' ]) : int
Parameters
$theme : string
$name : string
$handle : string = ''
$className : string = ''
Return values
int

actionTheme()

Creates a new theme

public actionTheme(string $name[, string $handle = '' ][, string $namespace = '' ][, string $className = '' ][, string $folder = null ]) : int
Parameters
$name : string
$handle : string = ''
$namespace : string = ''
$className : string = ''
$folder : string = null
Return values
int

Search results