public function processTemplateAction($template)
    {
        try {
            if (! empty($template)) {
                // If we have a view in the URL, render this view
                return $this->render($template);
            } elseif (null != $view = $this->getRequest()->get('view')) {
                return $this->render($view);
            }
        } catch (\Exception $ex) {
            return $this->errorPage($ex->getMessage());
        }

        return $this->pageNotFound();
    }
public function processTemplateAction($template)
    {
        try {
            if (! empty($template)) {
                // If we have a view in the URL, render this view
                return $this->render($template);
            } elseif (null != $view = $this->getRequest()->get('view')) {
                return $this->render($view);
            }
        } catch (\Exception $ex) {
            return $this->errorPage($ex->getMessage());
        }

        return $this->pageNotFound();
    }
public function processTemplateAction ( $ template ) { try { if ( ! empty ( $ template ) ) { // If we have a view in the URL, render this view return $ this -> render ( $ template ) ; } elseif ( null != $ view = $ this -> getRequest ( ) -> get ( 'view' ) ) { return $ this -> render ( $ view ) ; } } catch ( \ Exception $ ex ) { return $ this -> errorPage ( $ ex -> getMessage ( ) ) ; } return $ this -> pageNotFound ( ) ; }
This method process the rendering of view called from an admin page

@param  string   $template the template name
@return Response the response which contains the rendered view
This method process the rendering of view called from an admin page