single page controller 5.7

Permalink
when i go to /index.php/email_signup/view i get Call to a member function getPageController() on a non-object
the controller is in the path: application/controllers/single_page/email_signup.php
<?php
namespace Concrete\Controller\SinglePage;
use \Concrete\Core\Page\Controller\PageController;
use Loader;
use Page;
use Permissions;
use File;
class EmailSignup extends PageController {
   public function view() {
       $this->set('value', '123');
   }
}


any ideas how to make it work?

 
daenu replied on at Permalink Reply
daenu
I think it's a namespace issue:
When you create a single page in the application folder the namespace must point to there to:

Change:
namespace Concrete\Controller\SinglePage;

to:
namespace Application\Controller\SinglePage;