c5.7.x set route to single page controller

Permalink
Hi,

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

 

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.