Hi Adrian,
Thanks for the namespaced version, much appreciated and really sorry I've not checked it out sooner - but today is the day.
I have some code in ready.php which isn't namespaced yet in a project, so when I use the Console it complains when I have code in ready.php like:
$config->settings = wire('cache')->get('settings', WireCache::expireNever, function () {
...
}
With an error: Exception: Class "WireCache" not found etc.
I will get around to moving this very custom PW install to namespaces soon but wondering what's going on because in non-namespaced Tracy it's fine.
I think the answer is probably that I need to be using namespaces across my files for the namespaced Tracy to work (quick fix) but I don't understand why it's not using the compiled files - if you see what I mean. Because ready.php is getting compiled by FileCompiler so it has a namespace when the site runs, so it's like the Console window in Tracy is somehow running against the non-compiled site files.
Hopefully I've described that clearly - possibly not.
Hi Adrian,
Thanks for the namespaced version, much appreciated and really sorry I've not checked it out sooner - but today is the day.
I have some code in ready.php which isn't namespaced yet in a project, so when I use the Console it complains when I have code in ready.php like:
$config->settings = wire('cache')->get('settings', WireCache::expireNever, function () {
...
}
With an error: Exception: Class "WireCache" not found etc.
I will get around to moving this very custom PW install to namespaces soon but wondering what's going on because in non-namespaced Tracy it's fine.
I think the answer is probably that I need to be using namespaces across my files for the namespaced Tracy to work (quick fix) but I don't understand why it's not using the compiled files - if you see what I mean. Because ready.php is getting compiled by FileCompiler so it has a namespace when the site runs, so it's like the Console window in Tracy is somehow running against the non-compiled site files.
Hopefully I've described that clearly - possibly not.