Atomik::render()
Atomik::Render::Start
Fired at the beginning of a call to Atomik::render().
-
string &$view
The view name
-
array &$vars
Variables for the view file
-
array &$dirs
Directories where to find the view
-
boolean &$triggerError
Whether to throw an exception when the view file is missing
function myAtomikRenderStartHandler(&$view, &$vars, &$dirs, &$triggerError)
{
// your code
}
Atomik::listenEvent('Atomik::Render::Start', 'myAtomikRenderStartHandler');
Atomik::Render::Before
Fired before the inclusion of the view file.
-
string &$view
The view name
-
array &$vars
Variables for the view file
-
string &$filename
The view files's name
-
boolean $triggerError
Whether to throw an exception when the view file is missing
function myAtomikRenderBeforeHandler(&$view, &$vars, &$filename, $triggerError)
{
// your code
}
Atomik::listenEvent('Atomik::Render::Before', 'myAtomikRenderBeforeHandler');
Atomik::Render::After
Fired after the inclusion of the view file.
-
string $view
The view name
-
string &$output
The view output
-
array $vars
Variables for the view file
-
string $filename
The view files's name
-
boolean $triggerError
Whether to throw an exception when the view file is missing
function myAtomikRenderAfterHandler($view, &$output, $vars, $filename, $triggerError)
{
// your code
}
Atomik::listenEvent('Atomik::Render::After', 'myAtomikRenderAfterHandler');

