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 6169047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T22:47:26+00:00 2026-05-23T22:47:26+00:00

I am implementing a negation filter field in Symfony 1.4. with 1 text input

  • 0

I am implementing a negation filter field in Symfony 1.4. with 1 text input and 1 checkbox for negation.

I can access the input value as below

public function addXXXColumnQuery($query, $field, $value)
{
    $v = $value['text'];
    $n = 'negation_checkbox_true_or_false'; // don't know how?

    if ($n === true) 
    {
        $query->addWhere($query->getRootAlias().'.name = ?', $v);
    } 
    else if ($n === false) 
    {
        $query->addWhere($query->getRootAlias().'.name <> ?', $v);
    }
}

but I can’t figure out how to access the checkbox value.

sfWidgetFormInputFileEditable has a ‘with_delete’ option that prints a checkbox. Anyone knows where is the code that checks for that value and delete the file?

If I can find that, maybe I can figure that out.

  • 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-23T22:47:27+00:00Added an answer on May 23, 2026 at 10:47 pm

    When you create a sfWidgetFormInputFileEditable with the with_delete option set to true, the widget renders an additional checkbox which is named after the file upload widget with a “_delete” suffix.
    When the checkbox is checked, the sfParameterHolder of the sfWebRequest object contains a parameter named after the checkbox widget.

    So, suppose you have a sfWidgetFormInputFileEditable named “file”. In your action, you can see if the delete checkbox is checked using:

    $request->hasParameter('file_delete');
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Implementing ArrayAccess Interface in PHP , We can access Object Properties as Array Keys
Implementing a low pass FIR filter, when should one use FFT and IFFT instead
When implementing a microsoft.build.utilities.task how to i get access to the various environmental variables
Implementing a datastructure with two function pointers, key_eq and key_hash . When these function
Iam implementing facebook and twitter using sharekit for an iphone app. How can we
while implementing an inline search function for our local file archive I've come up
When implementing a class with multiple properties (like in the toy example below), what
Implementing Equals() for reference types is harder than it seems. My current canonical implementation
Implementing a 'sandbox' environment in Python used to be done with the rexec module
Implementing the ScriptControlClass was extremely easy, unfortunately the side effects with the language implementation

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.