Nested Single Page controllers

Permalink
Hi there, I'm hoping someone can point out an inexperienced error to me.

I have several single pages setup within my concrete5 install, which installed ok:

single_pages/signup/basic-details.php
single_pages/signup/billing-details.php
single_pages/signup/payment.php

From these single pages, I want to create a controller for each, so I have mirrored the single page structure under controllers:

controllers/signup/basic-details.php
controllers/signup/billing-details.php
controllers/signup/payment.php

with the class names being BasicDetailsController, BillingDetailsController, and PaymentController respectively.

When I try to post form data to the controller URL e.g.http://mydomain/signup/basic-details/SendBasicDetails/... I get a page not found error.

Does anyone have the experience to tell me what I'm missing before I have to do some sleeve rolling and debugging?

Regards,

Dan

dbaggs
 
dbaggs replied on at Permalink Reply
dbaggs
I think I've solved this myself. Typical situation of needing to publicise before the penny drops.

Instead of BasicDetailsController as the class name, I needed to incorporate the heirarchy. Therefore, SignupBasicDetailsController is what works.
JohntheFish replied on at Permalink Reply
JohntheFish
The controller should be
SignupBasicDetailsController

And the files
..../basic_details.php

You also need to go to the dashboard single pages section and 'add' the pages.

(There may be further issues after that)