Development

#3974 (sfAction's redirect methods should have an optional argument to specify the redirect code)

You must first sign up to be able to contribute.

Ticket #3974 (closed enhancement: fixed)

Opened 5 years ago

Last modified 5 years ago

sfAction's redirect methods should have an optional argument to specify the redirect code

Reported by: medick Assigned to: fabien
Priority: minor Milestone: 1.2.0
Component: controller Version: 1.0.17
Keywords: Cc:
Qualification: Design decision

Description

It would be more comfortable if you add $statucCode to redirectIf and redirectUnless methods.

Attachments

sfAction.patch (0.8 kB) - added by medick on 07/12/08 11:11:00.
adding $statucCode to redirectIf() and redirectUnless() methods

Change History

07/12/08 11:11:00 changed by medick

  • attachment sfAction.patch added.

adding $statucCode to redirectIf() and redirectUnless() methods

07/14/08 00:18:13 changed by Carl.Vondrick

  • summary changed from sfAction small enhancement to sfAction's redirect methods should have an optional argument to specify the redirect code.
  • qualification changed from Unreviewed to Design decision.
  • milestone set to 1.2.0.

The only reason I see not to do this is it might clutter the API.

08/13/08 13:43:15 changed by fabien

  • status changed from new to closed.
  • resolution set to fixed.

(In [10834]) [1.2] added an optional argument to redirectIf and redirectUnless to change the status code (closes #3974)