Call to a member function getPageController() on a non-object 5.7

Permalink
what i i doing wrong?
<?php
namespace Application\Concrete\Controller\SinglePage;
use \Concrete\Core\Page\Controller\PageController;
class EmailSignup extends PageController {
   public function view() {
       $this->set('error', '123');
   }
}

 
andrew replied on at Permalink Reply
andrew
Verify that your single page is here

application/single_pages/email_signup.php

your controller is here:

application/controllers/single_page/email_signup.php

And your namespace is wrong. It should be Application\Controller\SinglePage;

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.