c5.7.x set route to single page controller
Permalink
Hi,
in my package controller i register a route like the following:
package controller:
And my ContentPages controller looks like:
this works fine but c5 shows the default theme file instead of the controllers view.
Can anybody help me?
Greets
Marcus
in my package controller i register a route like the following:
package controller:
Route::register( '/{locale}/{type}/{page}', '\Concrete\Package\DnaPopulation\Controller\SinglePage\ContentPages::deeplink') ->addRequirements(array("locale" =>"de|en"));
And my ContentPages controller looks like:
public function deeplink(){ $l = Request::getInstance()->get('locale'); $t = Request::getInstance()->get('type'); $p = Request::getInstance()->get('page'); $this->view(); } public function view(){ echo "test"; }
this works fine but c5 shows the default theme file instead of the controllers view.
Can anybody help me?
Greets
Marcus