How would I go and use the new WonderCMS 3.0.0 addListener?
Is the following according to spec?
Code: Select all
<?php
global $Wcms;
function addcss($args) {
$args[0] .= "Nice!";
return $args;
};
$Wcms->addListener('css', 'addcss');
Code: Select all
<?php
global $Wcms;
function addcss($args) {
$args[0] .= "Nice!";
return $args;
};
$Wcms->addListener('css', 'addcss');