PageTypeController for theme page
Permalink
Hi,
In the old version of Concrete5 you could add a pagetype controller that had the same name as the file in the theme directory.
I can not get this to work in the new version.
/controllers/page_types/news.php
in themes/test I have the file news.php
Whatever name I give to the controller, its not being called. I can not find anything about this yet on the web.
Anyone know what I am doing wrong ?
In the old version of Concrete5 you could add a pagetype controller that had the same name as the file in the theme directory.
I can not get this to work in the new version.
/controllers/page_types/news.php
namespace Controller\PageType; use Concrete\Core\Page\Controller\PageTypeController; use Loader; use Page; use Permissions; use View; class News extends PageTypeController { public function view() { die('testing'); } }
in themes/test I have the file news.php
Whatever name I give to the controller, its not being called. I can not find anything about this yet on the web.
Anyone know what I am doing wrong ?
namespace Application\Controller\PageType;