symfony API

sfPHPView Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.0 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.0 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.

@package symfony

Inheritence

sfMailView, sfPartialView  <  sfPHPView  <  sfView

Method Summary

  • void configure()
    Configures template.
  • string decorate()
    Loop through all template slots and fill them in with the results of
  • execute()
    Executes any presentation logic for this view.
  • null getEngine()
    Retrieves the template engine associated with this view.
  • array getGlobalVars()
    Returns variables that will be accessible to the template.
  • loadCoreAndStandardHelpers()
    Load core and standard helpers to be use in the template.
  • string render()
    Renders the presentation.
  • string renderFile()
    Renders the presentation.

Methods inherited from sfView

configure , execute , getAttribute , getAttributeHolder , getComponentSlot , getContext , getDecoratorDirectory , getDecoratorTemplate , getDirectory , getEngine , getEscaping , getEscapingMethod , getExtension , getParameter , getParameterHolder , getTemplate , hasAttribute , hasComponentSlot , hasParameter , importAttributes , initialize , isDecorator , preRenderCheck , render , setAttribute , setComponentSlot , setDecorator , setDecoratorDirectory , setDecoratorTemplate , setDirectory , setEscaping , setEscapingMethod , setExtension , setParameter , setTemplate , __call

Method Details

  • (void) configure () Browse code

    Configures template.

  • (string) decorate () Browse code

    Loop through all template slots and fill them in with the results of

    presentation data.

    returns A decorated template

  • execute () Browse code

    Executes any presentation logic for this view.

  • (null) getEngine () Browse code

    Retrieves the template engine associated with this view.


    Note: This will return null because PHP itself has no engine reference.

  • (array) getGlobalVars () Browse code

    Returns variables that will be accessible to the template.

    returns Attributes from the template

  • loadCoreAndStandardHelpers () Browse code

    Load core and standard helpers to be use in the template.

  • (string) render () Browse code

    Renders the presentation.


    When the controller render mode is sfView::RENDER_CLIENT, this method will
    render the presentation directly to the client and null will be returned.

    returns A string representing the rendered presentation, if the controller render mode is sfView::RENDER_VAR, otherwise null

  • (string) renderFile () Browse code

    Renders the presentation.

    returns File content