Help with Single Page Controller Route
Permalink
Hi all,
I'm using 5.7 and trying to get a single page controller to run.
My single page view is at /application/single_pages/online_store/account/payments/thanks.php
My single page controller is at /controllers/online_store/account/payments/thanks.php
and contains
As far as I can tell, this is what is suggested athttp://www.concrete5.org/documentation/developers/5.7/working-with-...
However, when I visit the url mysite.com/online_store/account/payments/thanks/ the controller is bypassed completely and only the single page view is displayed.
I guess I'm getting the namespacing wrong, but I can't see how from the docs.
Can someone help?
I'm using 5.7 and trying to get a single page controller to run.
My single page view is at /application/single_pages/online_store/account/payments/thanks.php
My single page controller is at /controllers/online_store/account/payments/thanks.php
and contains
<?php namespace Application\Controller\SinglePage\OnlineStore\Account\Payments; use Concrete\Core\Page\Controller\PageController; class Thanks extends PageController { public function view(){ echo "This is Working"; } }//end of controller
As far as I can tell, this is what is suggested athttp://www.concrete5.org/documentation/developers/5.7/working-with-...
However, when I visit the url mysite.com/online_store/account/payments/thanks/ the controller is bypassed completely and only the single page view is displayed.
I guess I'm getting the namespacing wrong, but I can't see how from the docs.
Can someone help?
I'd missed out the "single_pages" folder from the filepath.