symfony API

sfPHPView Class

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to API menu

1.3 API OpenSearch

Packages

You are currently browsing the symfony API for the 1.3 version. Switch to:

A view that uses PHP as the templating engine.

Inheritence

sfPartialView, sfMailView  <  sfPHPView  <  sfView

Method Summary

  • void configure()
    Configures template.
  • string decorate($content)
    Loop through all template slots and fill them in with the results of presentation data.
  • execute()
    Executes any presentation logic for this view.
  • null getEngine()
    Retrieves the template engine associated with this view.
  • loadCoreAndStandardHelpers()
    Loads core and standard helpers to be use in the template.
  • string render()
    Renders the presentation.
  • string renderFile($_sfFile)
    Renders the presentation.

Methods inherited from sfView

configure , execute , getActionName , getAttribute , getAttributeHolder , getComponentSlot , getDecoratorDirectory , getDecoratorTemplate , getDirectory , getEngine , getExtension , getModuleName , getParameter , getParameterHolder , getTemplate , getViewName , hasAttribute , hasComponentSlot , hasParameter , initialize , initializeAttributeHolder , isDecorator , preRenderCheck , render , setAttribute , setComponentSlot , setDecorator , setDecoratorDirectory , setDecoratorTemplate , setDirectory , setExtension , setParameter , setTemplate , __call , __construct

Method Details

  • (void) configure () Browse code

    Configures template.

  • (string) decorate ($content) Browse code

    $content A chunk of decorator content

    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.

  • loadCoreAndStandardHelpers () Browse code

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

  • (string) render () Browse code

    Renders the presentation.

    returns A string representing the rendered presentation

  • (string) renderFile ($_sfFile) Browse code

    $_sfFile Filename

    Renders the presentation.

    returns File content