Page Type Controller Task

Permalink
Hi,

I need to add a task for a page type.

I created a page type controller in /controllers/page_types/my_super_page.php

Define a class "MySuperPagePageTypeController" extending Controller in this file.

Then I added my method task "public function doSomeStuff(){ // whatever }"

When I run /path/to/page/with/pagetype/doSomeStuff/ , I've got a 404 !

Could you help me ?

Thank you :)

Best,

moosh

moosh
 
moosh replied on at Permalink Reply
moosh
Arf ! Solved !

Just a folder name issue :)

I created "page_type" folder instead of "page_types" in conctroller folder

Best,

moosh