Single Page Controller
I'm doing my first single page controller - quite a noob so bear with me :)
"Call to a member function zxczxczxc() on a non-object"
I think I did something wrong or I'm missing something that is used to make a instance of my controller.
Your notes about the commented out lines - beware that it won't be the same instance of the controller as the one that you are working from the view of.
Tried it. Still doesn't work.
I'm pretty sure that my controller isn't loading. Do I need to specify anything in the view about the controller to use or vice versa?
Are my files in the correct folder/nameing structure?
If your controller isn't loading, chances are there is an issue with the filename, classname or path not following the naming convention.
If it is not in a package and added by the package controller, you may also need to add it at /dashboard/pages/single/.
Personally, I always build single pages within packages.
I added an error and conrete did display a message for it.
Not so sure what you mean by the 'add it at /dashboard/pages/single/' ? This page is going to be used by the public, not dashboard.
I didn't build this in a package but if you think it's a better choice could you maybe link me to a article or example?
I attached the deliberate error and then the one I'm trying to fix :|