symfony API

sfViewConfigHandler Class

« Back to API menu

action

addon

cache

config

controller

countable

database

debug

exception

filter

generator

helper

i18n

log

request

response

storage

test

user

util

validator

view

You are currently browsing the symfony documentation for the 1.0 version. Switch to:

sfViewConfigHandler allows you to configure views.

Inheritence

sfViewConfigHandler  <  sfYamlConfigHandler < sfConfigHandler

Method Summary

  • string execute($configFiles)
    Executes this configuration handler.
  • string addHtmlHead($viewName = &apos;&apos;)
    Adds http metas and metas statements to the data.
  • string addComponentSlots($viewName = &apos;&apos;)
    Adds a component slot statement to the data.
  • string addHtmlAsset($viewName = &apos;&apos;)
    Adds stylesheets and javascripts statements to the data.
  • mergeConfig($myConfig)
    Merges assets and environement configuration.
  • string addTemplate($viewName = &apos;&apos;)
    Adds a template setting statement to the data.
  • string addLayout($viewName = &apos;&apos;)
    Adds a layour statement statement to the data.
  • string addEscaping($viewName = &apos;&apos;)
    Adds an escaping statement to the data.

Methods inherited from sfYamlConfigHandler

parseYaml , parseYamls , getConfigValue , mergeConfigValue

Methods inherited from sfConfigHandler

execute , initialize , replaceConstants , replacePath , getParameterHolder

Method Details

  • (string) execute ($configFiles)

    $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

  • (string) addHtmlHead ($viewName = &apos;&apos;)

    $viewName The view name

    Adds http metas and metas statements to the data.

    returns The PHP statement

  • (string) addComponentSlots ($viewName = &apos;&apos;)

    $viewName The view name

    Adds a component slot statement to the data.

    returns The PHP statement

  • (string) addHtmlAsset ($viewName = &apos;&apos;)

    $viewName The view name

    Adds stylesheets and javascripts statements to the data.

    returns The PHP statement

  • mergeConfig ($myConfig)

    $myConfig A configuration array

    Merges assets and environement configuration.

  • (string) addTemplate ($viewName = &apos;&apos;)

    $viewName The view name

    Adds a template setting statement to the data.

    returns The PHP statement

  • (string) addLayout ($viewName = &apos;&apos;)

    $viewName The view name

    Adds a layour statement statement to the data.

    returns The PHP statement

  • (string) addEscaping ($viewName = &apos;&apos;)

    $viewName The view name

    Adds an escaping statement to the data.

    returns The PHP statement