Closed turnabout closed 6 years ago
Check this first: • Instead of Home.php, rename it to home.php • Ensure you have a home.php in the theme root.
Done those two and it works now. I was under the impression it was fine for the controller file to have an uppercased first letter, since that's how it is in the readme's controller example.
Thanks for the fast help!
Perhaps it depends on which server you have? If it is case-sensitive?
I'm using the distributed plugin (version 1.7) and I'm trying to use controllers inside my custom Wordpress theme. I'm trying to expose a variable from the controller inside the view, but it's coming up as undefined. It looks as if my controller file is being ignored.
This is my structure:
tmpl-home.php
(Wordpress template)home.blade.php
controllers/Home.php
I've activated debugging with
Debug::enable();
and it's coming up with these error messages:Any idea what could be wrong?