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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T16:33:58+00:00 2026-05-24T16:33:58+00:00

I have table: id | cat_id | name 1 | 1 | aaa 2

  • 0

I have table:

id | cat_id | name
1  | 1      | aaa
2  | 1      | bbb
3  | 2      | ccc
4  | 3      | ddd
5  | 2      | eee
6  | 1      | fff

I can go to site.com/table/edit/id/1
and show me input

name (id 1) [ aaa    ] (i hide other field)

and I can edit id 1. how can I make something:

site.com/table/edit/cat_id/1
and show me:

name (id1) [  aaa   ]
name (id2) [ bbb    ] 
name (id6) [ fff    ]

and i can edit them, and save. How to do this?

  • 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-24T16:33:59+00:00Added an answer on May 24, 2026 at 4:33 pm

    You’re not going to achieve this with the default generated forms. But it’s quite easy to create your own form (just extends from sfForm and implement the setup() function). Then add your own logic in the save() function.

    Pseudo-code:

    class myForm extends sfForm {
      public function setup() {
        $models = //;
    
        foreach($models as $model) {
           $this->addWidget(new sfWidgetFormInputText());
           $this->addValidator(new sfValidatorString());
        }
      }
    
      public function save() {
        // loop through the widgets and save if valid.
      }
    }
    

    EDIT: Hmm… i think you could also create one form, and add all the edit forms as subforms.

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

Sidebar

Related Questions

I have a cat table that has the following columns: cat_id | name |
If I have a MySQL table like this below: id | cat_id | name
I have a simple cakephp app with table articles that has a cat_id column
I have table with 50 entries (users with such details like Name Surname Location
I have the following MySql Table: -------------------------------------------- Table 'category' -------------------------------------------- category_id name parent_id 1
I have the following table: categories: cat_id | cat_cat | cat_name 1 | 0
Suppose I have a table, Foo, that looks like this: ID | Name |
I have the following data in a table. Name LeftId RightId ------------------------------------------ Cat 1
I have a MySQL table by name 'videos', where one of the column is
I have these tables: category table: cat_id (PK) cat_name category_options table: option_id (PK) cat_id

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.