I'm building a site that renders certain features using reusable classes. Unfortunately FileCompiler caches the files and my changes don't show up unless I clear the FileCompiler cache.
On top of that, when I try to use the wire() function inside a class it throws a "Fatal error: Uncaught Error: Call to undefined function wire()". I've tried playing with ProcessWire namespacing, but have come up short.
My files are structured as such:
app.php - Is included in my templates and loads classes as they're called with spl_autoload_register.
- classes/ExampleClass.class.php - Loaded by app.php
Thanks!