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

<?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?

 
Ambulare replied on at Permalink Reply
D'oh, it was the folder structure.

I'd missed out the "single_pages" folder from the filepath.

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.