symfony API

sfWebController Class

« Back to API menu

action

addon

autoload

cache

command

config

controller

creole

database

debug

exception

filter

form

generator

helper

i18n

log

plugin

propel

request

response

routing

storage

task

test

user

util

validator

view

widget

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

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.
  • redirect($url, $delay, $statusCode = 302)
    Redirects the request to another URL.
  • string genUrl($parameters = array(), $absolute = false)
    Generates an URL from an array of parameters.

Methods inherited from sfController

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

Method Details

  • (array) convertUrlStringToParameters ($url)

    $url An internal URI

    Converts an internal URI string to an array of parameters.

    returns An array of parameters

  • redirect ($url, $delay, $statusCode = 302)

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

  • (string) genUrl ($parameters = array(), $absolute = false)

    $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