Single Page from tutorial/documentation works not as expected

Permalink
Hi everybody!
I'm working with C5 since a few weeks and I was able to create some blocks and packages.

Now, I want to add some single pages with controllers. I started using the tutorial in the developer guide (https://www.concrete5.org/documentation/developers/5.7/working-with-pages/single-pages/overview/).

I just followed every step of the documentation but in the end I've not the same result as in the documentation.
So maybe anyone else can help me.

Here is my code:
media.php
<?php
namespace Application\Controller\SinglePage;
use Concrete\Core\Page\Controller\PageController;
class Media extends PageController {
    public function view() {
        echo ("Some content in view");
    }
    public function testMe()
    {
        echo ("Test it");
    }
}

view.php
<?php
echo ("Some content in file view.php");


For the directory structure please take a look at the attached file

This are the results of URL-calls
.../media
Displays the echo-content of the view.php
If there is no content in the view.php, nothing is displayed

.../media/testMe
Displays only that the requested page is not found

I've created a new URL using the "add single page" option.

Can anybody help me or provide an working example.

I have concrete 5.7.5.1 installed.

Many thanks!
Chris

1 Attachment

 
A3020 replied on at Permalink Best Answer Reply
A3020
What happens if you change testMe to test? I can imagine that the URL is case insensitive.