src/Controller/RoutesController.php
protected function _render($route, $element)
    {
        $routes = $this->Routes
            ->findAllFor($route->model, $route->foreign_key, $route->language_id)
            ->order([$this->Routes->aliasField('url') => 'asc']);

        $this->set([
            'routes' => $routes,
            'routeTypes' => RouteTypes::getForSelect(),
            'model' => $route->model,
            'element' => $element,
            'formRoute' => $route
        ]);

        $this->render('add');
    }
protected function _render($route, $element)
    {
        $routes = $this->Routes
            ->findAllFor($route->model, $route->foreign_key, $route->language_id)
            ->order([$this->Routes->aliasField('url') => 'asc']);

        $this->set([
            'routes' => $routes,
            'routeTypes' => RouteTypes::getForSelect(),
            'model' => $route->model,
            'element' => $element,
            'formRoute' => $route
        ]);

        $this->render('add');
    }
protected function _render ( $ route , $ element ) { $ routes = $ this -> Routes -> findAllFor ( $ route -> model , $ route -> foreign_key , $ route -> language_id ) -> order ( [ $ this -> Routes -> aliasField ( 'url' ) => 'asc' ] ) ; $ this -> set ( [ 'routes' => $ routes , 'routeTypes' => RouteTypes :: getForSelect ( ) , 'model' => $ route -> model , 'element' => $ element , 'formRoute' => $ route ] ) ; $ this -> render ( 'add' ) ; }
Global render method for all actions of this controller.

@param Route $route The route.
@param string $element The name of the view element.
@return void
Global render method for all actions of this controller .