Hi Gareth,
What is confounding me the most is that whatever I do it just isn't doing anything other than giving me errors.
I like the video and your explaination of whatyou are doing makes sense, I have not tried the method you used in that video yet, as I have been messing with the JS Modules stuff. I'm still not sure where this is supposed to go either...I need examples and can't find any!
<?php $PAGE->requires->js_call_amd($modulename, $functionname, $params); ?>
I am presuming that if I do something like this in the layout page it should work...
<?php
$modulename = 'theme_graphite/helloworld';
$functionname = 'makeitBlue'; // I am presuming this is a function! LOL
$params = '';
$PAGE->requires->js_call_amd($modulename, $functionname, $params); ?>
It's oh so new to me and it is utterly frustraiting becasue I feel like I am going round in circles.
Cheers
Mary