Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3723426
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T06:15:58+00:00 2026-05-19T06:15:58+00:00

Thanks for any help with this, I’m very new to the Symfony framework so

  • 0

Thanks for any help with this, I’m very new to the Symfony framework so just trying to get my head around it.

I want to be able to intercept a submitted form from the admin area and modify the data.

Here’s what I’ve got so far (in basic form)..

/apps/backend/modules/proposition/actions/action.class.php

class propositionActions extends autoPropositionActions {

  public function executeCreate(sfWebRequest $request) {
    // modify the name
    $name = $request->getParameter('name');
    $name = $name . ' is an idiot';
    $request->setParameter('name', $name);

    return parent::executeCreate($request);
  }

}

My form does contain a name field:

/apps/backend/modules/proposition/config/generator.yml

generator:
  class: sfDoctrineGenerator
  param:
    model_class:           Proposition
    theme:                 admin
    non_verbose_templates: true
    with_show:             false
    singular:              ~
    plural:                ~
    route_prefix:          proposition
    with_doctrine_route:   true
    actions_base_class:    sfActions

    config:
      actions: ~
      form:
        display: [name, icon, overview, published]

I’m not sure if that’s the file you need to see of not, but it’s definitely in the HTML:

<input type="text" id="proposition_name" name="proposition[name]">

When I submit the form it just saves my name. I want it to save my name appending ‘ is an idiot’.

Many thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-19T06:15:59+00:00Added an answer on May 19, 2026 at 6:15 am

    I think you are on the right track Peter, but modifying the $request too late for it to have any effect.

    You could do this sort of modification of inbound data in the “doClean” part of the Form’s validator.

    Or, if you have special processing to do, it might make more sense to override the generated processForm() function. Just copy it out of cache/frontend/dev/modules/autoProposition/actions/actions.class.php into your apps/backend/modules/proposition/actions/action.class.php and start hacking.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Thanks for any help in advance, I can't wrap my SQL skills around this
I am trying to solve a unique problem. Thanks for any help with this.
Still learning WPF....thanks for any help. Is there any way to Refactor this: <ListBox
Thanks in advance for any help you can provide on this issue! I manage
Sample data: I can flatten out parent-child relationship using this query.... Any help... Thanks
thanks for any help with this. I'm using the Three20 Photo Viewer in my
I am using c# .net. Thanks in advance for any help. I have searched
i have very serious problem if any tech expert can help...thank you in advance..
i've been asked this question and id not know the answer. Thanks for any
sorry - I know this is dead easy stuff, but I'm just trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.