Atomik Event Browser

Atomik::render()

Atomik::Render::Start

Fired at the beginning of a call to Atomik::render().

  1. string &$view

    The view name

  2. array &$vars

    Variables for the view file

  3. array &$dirs

    Directories where to find the view

  4. 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.

  1. string &$view

    The view name

  2. array &$vars

    Variables for the view file

  3. string &$filename

    The view files's name

  4. 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.

  1. string $view

    The view name

  2. string &$output

    The view output

  3. array $vars

    Variables for the view file

  4. string $filename

    The view files's name

  5. 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');