View
class View (View source)
Constants
| UNSAFE |
|
Methods
Set encoding used by escape engine
Force the View::render method to render at the time it is called
Starts rendering of registered views.
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
setEncoding($value)
Set encoding used by escape engine
static
forceRender()
Force the View::render method to render at the time it is called
static
dispatch()
Starts rendering of registered views.
Executes all registered views and forces immediate rendering for subsequent calls.
static
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(), int $mode = ENT_QUOTES)
Register or render a View. If View is registered this method returns the index number from View
static
remove(int $index)
Remove a registered View by index