Documentation

Controller extends Injectable
in package

Manager controllers / actions generation

Table of Contents

$camelize  : Camelize
Object to camelize texts
$uncamelize  : Uncamelize
Object to uncamelize texts
__construct()  : mixed
Generate controller empty or with action given Views will be create for all actions by default except if the NO_VIEW option is set
setActions()  : void
Add action in the controller and generate view if needed

Properties

$camelize

Object to camelize texts

private Camelize $camelize

$uncamelize

Object to uncamelize texts

private Uncamelize $uncamelize

Methods

__construct()

Generate controller empty or with action given Views will be create for all actions by default except if the NO_VIEW option is set

public __construct(string $controller[, null|string $actions = null ]) : mixed
Parameters
$controller : string

Controller name

$actions : null|string = null
Return values
mixed

setActions()

Add action in the controller and generate view if needed

private setActions(string $controller[, null|string $actions = null ], string &$source) : void
Parameters
$controller : string

Controllre name

$actions : null|string = null
$source : string

Content of the actual controller

Return values
void

Search results