symfony API

sfViewConfigHandler Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.1 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.1 version. Switch to:
This version of symfony is not maintained anymore.
If some of your projects still use this version, consider upgrading as soon as possible.

sfViewConfigHandler allows you to configure views.

Inheritence

sfViewConfigHandler  <  sfYamlConfigHandler < sfConfigHandler

Method Summary

  • array addAssets($type)
    Creates a list of add$Type PHP statements for the given type and config.
  • string addComponentSlots($viewName)
    Adds a component slot statement to the data.
  • string addEscaping($viewName)
    Adds an escaping statement to the data.
  • string addHtmlAsset($viewName)
    Adds stylesheets and javascripts statements to the data.
  • string addHtmlHead($viewName)
    Adds http metas and metas statements to the data.
  • string addLayout($viewName)
    Adds a layout statement statement to the data.
  • string addTemplate($viewName)
    Adds a template setting statement to the data.
  • string execute($configFiles)
    Executes this configuration handler.
  • getConfiguration()
    @see sfConfigHandler
  • mergeConfig()

Methods inherited from sfYamlConfigHandler

flattenConfiguration , flattenConfigurationWithEnvironment , getConfigValue , mergeConfigValue , parseYaml , parseYamls

Methods inherited from sfConfigHandler

execute , getConfiguration , getParameterHolder , initialize , replaceConstants , replacePath , __construct

Method Details

  • (array) addAssets ($type) Browse code

    $type of asset. Requires an sfWebResponse->add$Type(string, string, array) method

    Creates a list of add$Type PHP statements for the given type and config.

    returns ist of add$Type PHP statements

  • (string) addComponentSlots ($viewName) Browse code

    $viewName The view name

    Adds a component slot statement to the data.

    returns The PHP statement

  • (string) addEscaping ($viewName) Browse code

    $viewName The view name

    Adds an escaping statement to the data.

    returns The PHP statement

  • (string) addHtmlAsset ($viewName) Browse code

    $viewName The view name

    Adds stylesheets and javascripts statements to the data.

    returns The PHP statement

  • (string) addHtmlHead ($viewName) Browse code

    $viewName The view name

    Adds http metas and metas statements to the data.

    returns The PHP statement

  • (string) addLayout ($viewName) Browse code

    $viewName The view name

    Adds a layout statement statement to the data.

    returns The PHP statement

  • (string) addTemplate ($viewName) Browse code

    $viewName The view name

    Adds a template setting statement to the data.

    returns The PHP statement

  • (string) execute ($configFiles) Browse code

    $configFiles An array of absolute filesystem path to a configuration file

    Executes this configuration handler.

    returns Data to be written to a cache file

    throws sfConfigurationException If a requested configuration file does not exist or is not readable

  • getConfiguration () Browse code

    @see sfConfigHandler

  • mergeConfig () Browse code