Menu

## Kotchasan extends KBase
in package

Kotchasan.php : 18

The main class of the Kotchasan framework.

##### Tags

see
  https://www.kotchasan.com/

### Table of Contents

$char_set : string
  Default charset (recommended utf-8).
$debugger : array<string|int, mixed>
  Stores DEBUG information.
$defaultController : string
  The main controller.
$defaultRouter : string
  The main router.
$cfg : object
  Config class instance.
$request : Request
  Server request class instance.
$instance : Singleton
  Singleton instance of the class.
createWebApplication() : static
  Creates a web application instance. Can only be called once.
run() : mixed
  Runs the web page.
__construct() : mixed
  Class constructor (private, Singleton).

### Properties

#### $char_set

Kotchasan.php : 25

Default charset (recommended utf-8).

`public string $char_set = 'utf-8'`

#### $debugger

Kotchasan.php : 46

Stores DEBUG information.

`public static array<string|int, mixed> $debugger = ull`

#### $defaultController

Kotchasan.php : 32

The main controller.

`public string $defaultController = 'Index\Index\Controller'`

#### $defaultRouter

Kotchasan.php : 39

The main router.

`public string $defaultRouter = 'Kotchasan\Router'`

#### $cfg

KBase.php : 26

Config class instance.

`protected static object $cfg`

#### $request

KBase.php : 33

Server request class instance.

`protected static Request $request`

#### $instance

Kotchasan.php : 53

Singleton instance of the class.

`private static Singleton $instance = ull`

### Methods

#### createWebApplication()

Kotchasan.php : 62

Creates a web application instance. Can only be called once.

`public static createWebApplication([mixed $cfg = null ]) : static`

##### Parameters

$cfg : mixed = null

  Name of the class or an object of the Config class. If not specified, \Kotchasan\Config will be used.

##### Return values

static —

#### run()

Kotchasan.php : 73

Runs the web page.

`public run() : mixed`

##### Return values

mixed —

#### __construct()

Kotchasan.php : 84

Class constructor (private, Singleton).

`private __construct(mixed $cfg) : mixed`

##### Parameters

$cfg : mixed

  Name of the class or an object of the Config class. If not specified, \Kotchasan\Config will be used.

##### Return values

mixed —

## Search results