original_string: public static function render($pageFile, $parameters = [], $theme = null)
      {
          if (!$theme && (!$theme = Theme::getActiveTheme())) {
              throw new CmsException(Lang::get('cms::lang.theme.active.not_found'));
          }
  
          $controller = new static($theme);
          $controller->getRouter()->setParameters($parameters);
  
          if (($page = Page::load($theme, $pageFile)) === null) {
              throw new CmsException(Lang::get('cms::lang.page.not_found_name', ['name'=>$pageFile]));
          }
  
          return $controller->runPage($page, false);
      }
code: public static function render($pageFile, $parameters = [], $theme = null)
      {
          if (!$theme && (!$theme = Theme::getActiveTheme())) {
              throw new CmsException(Lang::get('cms::lang.theme.active.not_found'));
          }
  
          $controller = new static($theme);
          $controller->getRouter()->setParameters($parameters);
  
          if (($page = Page::load($theme, $pageFile)) === null) {
              throw new CmsException(Lang::get('cms::lang.page.not_found_name', ['name'=>$pageFile]));
          }
  
          return $controller->runPage($page, false);
      }
code_tokens: public static function render ( $ pageFile , $ parameters = [ ] , $ theme = null ) { if ( ! $ theme && ( ! $ theme = Theme :: getActiveTheme ( ) ) ) { throw new CmsException ( Lang :: get ( 'cms::lang.theme.active.not_found' ) ) ; } $ controller = new static ( $ theme ) ; $ controller -> getRouter ( ) -> setParameters ( $ parameters ) ; if ( ( $ page = Page :: load ( $ theme , $ pageFile ) ) === null ) { throw new CmsException ( Lang :: get ( 'cms::lang.page.not_found_name' , [ 'name' => $ pageFile ] ) ) ; } return $ controller -> runPage ( $ page , false ) ; }
docstring: Renders a page in its entirety, including component initialization.
  AJAX will be disabled for this process.
  @param string $pageFile Specifies the CMS page file name to run.
  @param array  $parameters  Routing parameters.
  @param \Cms\Classes\Theme  $theme  Theme object
docstring_tokens: Renders a page in its entirety including component initialization . AJAX will be disabled for this process .