original_string: public function renderContent($name, $parameters = [])
      {
          /**
           * @event cms.page.beforeRenderContent
           * Provides an oportunity to manipulate the name of the content file being rendered before it renders
           *
           * Example usage:
           *
           *     Event::listen('cms.page.beforeRenderContent', function ((\Cms\Classes\Controller) $controller, (string) $contentName) {
           *         return "path/to/overriding/location/" . $contentName;
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.beforeRenderContent', function ((string) $contentName) {
           *         return "path/to/overriding/location/" . $contentName;
           *     });
           *
           */
          if ($event = $this->fireSystemEvent('cms.page.beforeRenderContent', [$name])) {
              $content = $event;
          }
          /*
           * Load content from theme
           */
          elseif (($content = Content::loadCached($this->theme, $name)) === null) {
              throw new CmsException(Lang::get('cms::lang.content.not_found_name', ['name'=>$name]));
          }
  
          $fileContent = $content->parsedMarkup;
  
          /*
           * Inject global view variables
           */
          $globalVars = ViewHelper::getGlobalVars();
          if (!empty($globalVars)) {
              $parameters = (array) $parameters + $globalVars;
          }
  
          /*
           * Parse basic template variables
           */
          if (!empty($parameters)) {
              $fileContent = TextParser::parse($fileContent, $parameters);
          }
  
          /**
           * @event cms.page.renderContent
           * Provides an oportunity to manipulate the output of a content file after being rendered
           *
           * Example usage:
           *
           *     Event::listen('cms.page.renderContent', function ((\Cms\Classes\Controller) $controller, (string) $contentName, (string) &$fileContent) {
           *         return "Overriding content";
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.renderContent', function ((string) $contentName, (string) &$fileContent) {
           *         return "Overriding content";
           *     });
           *
           */
          if ($event = $this->fireSystemEvent('cms.page.renderContent', [$name, &$fileContent])) {
              return $event;
          }
  
          return $fileContent;
      }
code: public function renderContent($name, $parameters = [])
      {
          /**
           * @event cms.page.beforeRenderContent
           * Provides an oportunity to manipulate the name of the content file being rendered before it renders
           *
           * Example usage:
           *
           *     Event::listen('cms.page.beforeRenderContent', function ((\Cms\Classes\Controller) $controller, (string) $contentName) {
           *         return "path/to/overriding/location/" . $contentName;
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.beforeRenderContent', function ((string) $contentName) {
           *         return "path/to/overriding/location/" . $contentName;
           *     });
           *
           */
          if ($event = $this->fireSystemEvent('cms.page.beforeRenderContent', [$name])) {
              $content = $event;
          }
          /*
           * Load content from theme
           */
          elseif (($content = Content::loadCached($this->theme, $name)) === null) {
              throw new CmsException(Lang::get('cms::lang.content.not_found_name', ['name'=>$name]));
          }
  
          $fileContent = $content->parsedMarkup;
  
          /*
           * Inject global view variables
           */
          $globalVars = ViewHelper::getGlobalVars();
          if (!empty($globalVars)) {
              $parameters = (array) $parameters + $globalVars;
          }
  
          /*
           * Parse basic template variables
           */
          if (!empty($parameters)) {
              $fileContent = TextParser::parse($fileContent, $parameters);
          }
  
          /**
           * @event cms.page.renderContent
           * Provides an oportunity to manipulate the output of a content file after being rendered
           *
           * Example usage:
           *
           *     Event::listen('cms.page.renderContent', function ((\Cms\Classes\Controller) $controller, (string) $contentName, (string) &$fileContent) {
           *         return "Overriding content";
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.renderContent', function ((string) $contentName, (string) &$fileContent) {
           *         return "Overriding content";
           *     });
           *
           */
          if ($event = $this->fireSystemEvent('cms.page.renderContent', [$name, &$fileContent])) {
              return $event;
          }
  
          return $fileContent;
      }
code_tokens: public function renderContent ( $ name , $ parameters = [ ] ) { /**
           * @event cms.page.beforeRenderContent
           * Provides an oportunity to manipulate the name of the content file being rendered before it renders
           *
           * Example usage:
           *
           *     Event::listen('cms.page.beforeRenderContent', function ((\Cms\Classes\Controller) $controller, (string) $contentName) {
           *         return "path/to/overriding/location/" . $contentName;
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.beforeRenderContent', function ((string) $contentName) {
           *         return "path/to/overriding/location/" . $contentName;
           *     });
           *
           */ if ( $ event = $ this -> fireSystemEvent ( 'cms.page.beforeRenderContent' , [ $ name ] ) ) { $ content = $ event ; } /*
           * Load content from theme
           */ elseif ( ( $ content = Content :: loadCached ( $ this -> theme , $ name ) ) === null ) { throw new CmsException ( Lang :: get ( 'cms::lang.content.not_found_name' , [ 'name' => $ name ] ) ) ; } $ fileContent = $ content -> parsedMarkup ; /*
           * Inject global view variables
           */ $ globalVars = ViewHelper :: getGlobalVars ( ) ; if ( ! empty ( $ globalVars ) ) { $ parameters = ( array ) $ parameters + $ globalVars ; } /*
           * Parse basic template variables
           */ if ( ! empty ( $ parameters ) ) { $ fileContent = TextParser :: parse ( $ fileContent , $ parameters ) ; } /**
           * @event cms.page.renderContent
           * Provides an oportunity to manipulate the output of a content file after being rendered
           *
           * Example usage:
           *
           *     Event::listen('cms.page.renderContent', function ((\Cms\Classes\Controller) $controller, (string) $contentName, (string) &$fileContent) {
           *         return "Overriding content";
           *     });
           *
           * Or
           *
           *     $CmsController->bindEvent('page.renderContent', function ((string) $contentName, (string) &$fileContent) {
           *         return "Overriding content";
           *     });
           *
           */ if ( $ event = $ this -> fireSystemEvent ( 'cms.page.renderContent' , [ $ name , & $ fileContent ] ) ) { return $ event ; } return $ fileContent ; }
docstring: Renders a requested content file.
  The framework uses this method internally.
  @param string $name The content view to load.
  @param array $parameters Parameter variables to pass to the view.
  @return string
docstring_tokens: Renders a requested content file . The framework uses this method internally .