Single Page not loading Controller
Permalink
I've been going crazy with this problem that should be very simple, but I can't seem to solve it. I created a Single Page at /single_pages/cool_dogs/view.php which is loading no problem.
But then I created a controller for that page at /controllers/cool_dogs/controller.php which I can't get to load. I also tried creating the file at /controllers/cool_dogs.php but that didn't get me anywhere either.
Here is my controller code:
But then I created a controller for that page at /controllers/cool_dogs/controller.php which I can't get to load. I also tried creating the file at /controllers/cool_dogs.php but that didn't get me anywhere either.
Here is my controller code:
<?php class CoolDogsController extends Controller { public function view() { print 'Controller here.'; } }
Thanks so much for your reply. I've tried both of those things a few times, but no luck.
Hi!
I can't find the post, but I think I read it somewhere that 5.7 does not support "view.php"-ish single pages, but I may have misunderstood something.
Other than that. I had the same issue, but my problem was rather comic: I swapped the files in the directories. The controller was in the single_pages folder and vice versa. Of course, no error messages were displayed.
You might wanna give these a try.
Cheers
I can't find the post, but I think I read it somewhere that 5.7 does not support "view.php"-ish single pages, but I may have misunderstood something.
Other than that. I had the same issue, but my problem was rather comic: I swapped the files in the directories. The controller was in the single_pages folder and vice versa. Of course, no error messages were displayed.
You might wanna give these a try.
Cheers
Rony