Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-03-14 13:05:12 +0400
committermattab <matthieu.aubry@gmail.com>2014-03-14 13:05:12 +0400
commitc22a0017beb391ed9734b67abf5b1bcfeb26d233 (patch)
treecdd2f0a3a18a4c83764b8a10abc7d74b2c830acc /piwik.js
parentf2466a580bcc1a33fb8ccee420bcf31ceb7b00ed (diff)
Allow templates postEvent() calls to also pass parameters. For example this is done in the twig template:
``` {{ postEvent("Template.jsGlobalVariables", minDateYear, maxDateYear) }} ``` and you can hook on this event, by doing: ``` public function addTrackingHostnamesToJs(&$out, $minDateYear, $maxDateYear) { // printout out the data as a comment for testing $out .= "/* " . $minDateYear . " - " . $maxDateYear . " */"; ```
Diffstat (limited to 'piwik.js')
0 files changed, 0 insertions, 0 deletions