Atomik::dispatch()
Atomik::Dispatch::Start
Fired at the start of the method
-
string &$uri
The uri that is being dispatched.
-
boolean &$allowPluggableApplication
Whether pluggable applications are allowed during this dispatch.
-
boolean &$cancel
Set to true to cancel the dispatch process. Will exit Atomik.
function myAtomikDispatchStartHandler(&$uri, &$allowPluggableApplication, &$cancel)
{
// your code
}
Atomik::listenEvent('Atomik::Dispatch::Start', 'myAtomikDispatchStartHandler');
Atomik::Dispatch::Uri
Fired once the uri has been computed. Do not use request_uri or request config keys but the event's params.
-
string &$uri
The uri that is being dispatched.
-
array &$request
Request parameters.
-
boolean &$cancel
Set to true to cancel the dispatch process. Will exit Atomik.
function myAtomikDispatchUriHandler(&$uri, &$request, &$cancel)
{
// your code
}
Atomik::listenEvent('Atomik::Dispatch::Uri', 'myAtomikDispatchUriHandler');
Atomik::Dispatch::Before
Fired once the request has been routed and before the call to pre_dispatch.php.
-
boolean &$cancel
Set to true to cancel the dispatch process. Will exit Atomik.
function myAtomikDispatchBeforeHandler(&$cancel)
{
// your code
}
Atomik::listenEvent('Atomik::Dispatch::Before', 'myAtomikDispatchBeforeHandler');
Atomik::Output::Before
Fired before content is echoed.
-
string &$output
The content that will be echoed
function myAtomikOutputBeforeHandler(&$output)
{
// your code
}
Atomik::listenEvent('Atomik::Output::Before', 'myAtomikOutputBeforeHandler');
Atomik::Output::After
Fired after content has been echoed.
-
string $output
The content that has been echoed
function myAtomikOutputAfterHandler($output)
{
// your code
}
Atomik::listenEvent('Atomik::Output::After', 'myAtomikOutputAfterHandler');
Atomik::Dispatch::After
Fired after the view (and the layout) has been rendered and before the call to pre_dispatch.php.
function myAtomikDispatchAfterHandler()
{
// your code
}
Atomik::listenEvent('Atomik::Dispatch::After', 'myAtomikDispatchAfterHandler');

