Leaf PHP

BareUI
in package

Bare UI ------------ Leaf templating language focused on speed, speed and more speed.

Tags
since

v2.4.4

author

Michael Darko mickdd22@gmail.com

Table of Contents

Properties

$config  : mixed

Methods

config()  : mixed
Configure bare UI
render()  : mixed
Render a bare UI
getView()  : mixed

Properties

$config

private static mixed $config = ['path' => null, 'params' => []]

Methods

config()

Configure bare UI

public static config(array<string|int, mixed>|string $item[, mixed $value = null ]) : mixed
Parameters
$item : array<string|int, mixed>|string

The item(s) to configure

$value : mixed = null

Value of config. Ignored if $item is array.

render()

Render a bare UI

public static render(string $view[, array<string|int, mixed> $data = [] ]) : mixed
Parameters
$view : string

The view to render

$data : array<string|int, mixed> = []

The params to pass into UI

getView()

private static getView(mixed $view) : mixed
Parameters
$view : mixed

        
On this page

Search results