symfony API

sfWebController 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.

sfWebController provides web specific methods to sfController such as, url redirection.

Inheritence

sfFrontWebController  <  sfWebController  <  sfController

Method Summary

  • array convertUrlStringToParameters($url)
    Converts an internal URI string to an array of parameters.
  • string genUrl($parameters, $absolute)
    Generates an URL from an array of parameters.
  • redirect($url, $delay, $statusCode)
    Redirects the request to another URL.

Methods inherited from sfController

actionExists , componentExists , controllerExists , forward , getAction , getActionStack , getComponent , getController , getPresentationFor , getRenderMode , getView , inCLI , initialize , sendEmail , setRenderMode , __call , __construct

Method Details

  • (array) convertUrlStringToParameters ($url) Browse code

    $url An internal URI

    Converts an internal URI string to an array of parameters.

    returns An array of parameters

  • (string) genUrl ($parameters, $absolute) Browse code

    $parameters An associative array of URL parameters or an internal URI as a string.
    $absolute Whether to generate an absolute URL

    Generates an URL from an array of parameters.

    returns A URL to a symfony resource

  • redirect ($url, $delay, $statusCode) Browse code

    $url An existing URL
    $delay A delay in seconds before redirecting. This is only needed on browsers that do not support HTTP headers
    $statusCode The status code

    Redirects the request to another URL.