If you are or want to become a Flarum extension developer, you might want to read up on the several resources and tutorials related to Extension development:
How to debug
- Enable debug (set to
true in config.php).
- Check that your extension is loaded in the page, for instance my
hyn/flarum-analytics package can be found in the source when looking for
- If your extension is loaded. See if it actually runs, use
console.log('hello there'); to see whether the code is running. The message will be shown under the console in your browser.
Suggestions? Let us know.