-
Gets a variable for the template.
This is a shortcut for:
$this->getVar('name')
returns The variable value
-
Displays a message as a short message in the sfWebDebug toolbar.
-
Execute any application/business logic for this component.
In a typical database-driven application, execute() handles application
logic itself and then proceeds to create a model instance. Once the model
instance is initialized it handles all business logic for the action.
A model should represent an entity in your application. This could be a
user account, a shopping cart, or even a something as simple as a
single product.
returns A string containing the view name associated with this action
-
(string) getActionName ()
Browse code
Gets the action name associated with this component.
returns An action name
-
(sfContext) getContext ()
Browse code
Retrieves the current application context.
returns The current sfContext instance
-
(sfController) getController ()
Browse code
Retrieves the current sfController object.
This is a proxy method equivalent to:
$this->getContext()->getController()
returns The current sfController implementation instance
-
Gets a flash variable.
returns The value of the flash variable
-
(sfLogger) getLogger ()
Browse code
Retrieves the current logger instance.
returns The current sfLogger instance
-
(string) getModuleName ()
Browse code
Gets the module name associated with this component.
returns A module name
-
(string) getPresentationFor (, , )
Browse code
Returns the rendered view presentation of a given module/action.
This is a shortcut for
$this->getController()->getPresentationFor($module, $action, $viewName)
returns The generated content
-
(sfRequest) getRequest ()
Browse code
Retrieves the current sfRequest object.
This is a proxy method equivalent to:
$this->getContext()->getRequest()
returns The current sfRequest implementation instance
-
(string) getRequestParameter ()
Browse code
Returns the value of a request parameter.
This is a proxy method equivalent to:
$this->getRequest()->getParameterHolder()->get($name)
returns The request parameter value
-
(sfResponse) getResponse ()
Browse code
Retrieves the current sfResponse object.
This is a proxy method equivalent to:
$this->getContext()->getResponse()
returns The current sfResponse implementation instance
-
Retrieves the current sfUser object.
This is a proxy method equivalent to:
$this->getContext()->getUser()
returns The current sfUser implementation instance
-
Gets a variable set for the template.
returns The variable value
-
(sfParameterHolder) getVarHolder ()
Browse code
Gets the sfParameterHolder object that stores the template variables.
returns The variable holder.
-
Returns true if a flash variable of the specified name exists.
returns true if the variable exists, false otherwise
-
(boolean) hasRequestParameter ()
Browse code
Returns true if a request parameter exists.
This is a proxy method equivalent to:
$this->getRequest()->getParameterHolder()->has($name)
returns true if the request parameter exists, false otherwise
-
(boolean) initialize ()
Browse code
Initializes this component.
returns true, if initialization completes successfully, otherwise false
-
Logs a message using the sfLogger object.
-
(string) sendEmail (, )
Browse code
Sends and email from the current action.
This methods calls a module/action with the sfMailView class.
This is a shortcut for
$this->getController()->sendEmail($module, $action)
returns The generated mail content
-
Sets a flash variable that will be passed to the very next action.
-
Sets a variable for the template.
-
Calls methods defined via the sfMixer class.
returns The returned value of the called method
-
Returns true if a variable for the template is set.
This is a shortcut for:
$this->getVarHolder()->has('name')
returns true if the variable is set
-
Sets a variable for the template.
This is a shortcut for:
$this->setVar('name', 'value')
returns always true
-
Removes a variable for the template.
This is just really a shortcut for:
$this->getVarHolder()->remove('name')