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
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
Instead of BasicDetailsController as the class name, I needed to incorporate the heirarchy. Therefore, SignupBasicDetailsController is what works.