class View (View source)

Methods

static void
forceRender()

Force the View::render method to render at the time it is called

static void
dispatch()

Starts rendering of registered views. After calling this method call it will automatically execute View::forceRender()

static void
data(string $key, mixed $value)

Share or remove shared data to Views, shared variables will be added as variables to the views that will be executed later

static bool
exists(string $view)

Check if view exists in ./application/View/ folder

static int|null
render(string $view, array $data = array())

Register or render a View. If View is registered this method returns the index number from View

static void
remove(int $index)

Remove a registered View by index

Details

static void forceRender()

Force the View::render method to render at the time it is called

Return Value

void

static void dispatch()

Starts rendering of registered views. After calling this method call it will automatically execute View::forceRender()

Return Value

void

static void data(string $key, mixed $value)

Share or remove shared data to Views, shared variables will be added as variables to the views that will be executed later

Parameters

string $key
mixed $value

Return Value

void

static bool exists(string $view)

Check if view exists in ./application/View/ folder

Parameters

string $view

Return Value

bool

static int|null render(string $view, array $data = array())

Register or render a View. If View is registered this method returns the index number from View

Parameters

string $view
array $data

Return Value

int|null

static void remove(int $index)

Remove a registered View by index

Parameters

int $index

Return Value

void