Page Type Controller
Permalink
Hi,
I'm struggling to get the page type controller to work. From the docs I understand that my page type handle should be the file name, and should live here: "/controllers/page_types/my_handle.php"
This is the code I'm trying:
Could anyone give any insight in to what I'm missing?
Thanks.
I'm struggling to get the page type controller to work. From the docs I understand that my page type handle should be the file name, and should live here: "/controllers/page_types/my_handle.php"
This is the code I'm trying:
Could anyone give any insight in to what I'm missing?
Thanks.
![bbeng89](/files/avatars/68666.jpg)
What you have looks correct to me... Have you tried clearing out the cache since you added the controller?
Bloody cache, wish this was turned off by default, who the hell wants it this way after an install?
I've done this so many god damn times and still never remember to turn it off.
Thanks bbeng.
I've done this so many god damn times and still never remember to turn it off.
Thanks bbeng.
Haha, not a problem, I definitely know the feeling. Glad I could help.