Single Page $view is null

Permalink
I've managed to create a single page that displays fine, but has a null $view. This precludes me from making some calls into the c5 API.

I don't know what diagnostic info is relevant. The page is at packages\gond_exerbyte\single_pages\test\view.php.

(There is a controller, but it's basically empty. I know it's working because I can induce exceptions by putting bugs in it.)

Does anyone know how $view could be null and, more usefully, how to fix it?

Thanks!

Gondwana
 
Gondwana replied on at Permalink Reply
Gondwana
...and the answer, as expected, is that I'm a dill. $view is null within a php function unless it's explicitly passed or globalled, etc.