View
class View (View source)
Methods
Force the View::render method to render at the time it is called
Starts rendering of registered views. After calling this method call it will automatically
execute View::forceRender()
Share or remove shared data to Views, shared variables will be added as variables to the views that will be executed later
Check if view exists in ./application/View/ folder
Register or render a View. If View is registered this method returns the index number from View
Remove a registered View by index
Details
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
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