Leaf PHP

Core
in package

Leaf MVC Core ---------- Base class for configuring core methods

Table of Contents

Properties

$mode  : mixed
$paths  : mixed

Methods

loadApplicationConfig()  : mixed
Setup MVC application based on config
loadConsole()  : mixed
Load Aloe console and user defined commands
loadLibs()  : mixed
Load user defined libs
mode()  : mixed
Set mode for Leaf MVC: API or Web
paths()  : array<string|int, mixed>
Return application paths
runApplication()  : mixed
Load all application routes and run the application
loadConfig()  : mixed
Load all config files defined in the config folder

Properties

$mode

protected static mixed $mode = 'web'

$paths

protected static mixed $paths

Methods

loadApplicationConfig()

Setup MVC application based on config

public static loadApplicationConfig() : mixed

loadConsole()

Load Aloe console and user defined commands

public static loadConsole([mixed $externalCommands = [] ]) : mixed
Parameters
$externalCommands : mixed = []

loadLibs()

Load user defined libs

public static loadLibs() : mixed

mode()

Set mode for Leaf MVC: API or Web

public static mode([string|null $mode = null ]) : mixed
Parameters
$mode : string|null = null

paths()

Return application paths

public static paths() : array<string|int, mixed>
Return values
array<string|int, mixed>

runApplication()

Load all application routes and run the application

public static runApplication() : mixed

loadConfig()

Load all config files defined in the config folder

protected static loadConfig() : mixed

        
On this page

Search results