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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:05:17+00:00 2026-05-18T03:05:17+00:00

This may sound as a non related coding question but it’s directly related :

  • 0

This may sound as a non related coding question but it’s directly related :

The facts: I’ve developped a website (with symfony) which allows players to search for a team (like a job board). It makes one module only.

The problems I want the website to be even more accurate and make a custom form for each players depending on the game (for example, for those who play “league of legends” they’ll have 3 more informations to fill up….)

The solutions?

  • One module per game (example: http://pastie.org/private/cl48jsrjreukyjmj7jrk8a).

I’m currently developping 1 module per game in order to take in consideration the specific criteria for specific games.

Advantages :
The player enters the informations in relation with his game and does not see/interact the other criteria

Disavantages:
90% of the code are the same between each modules. It takes more time.


  • Inheritance

I never played with that before so i don’t know if it’s possible in my case to stick with 1 module for the entire game collection AND taking in consideration the specific criterias for games. In that case it would mean to have 1 template per game and displaying the right template with the right accessors like
($this->getCV()->getPseudo(); / $this->getCV()->getGame()->getSpecificCriteria1();)

  • 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-18T03:05:18+00:00Added an answer on May 18, 2026 at 3:05 am

    If I have read your question correctly, you want to show additional fields for each specific game.

    Solution 1

    Create a 2 form process. After your first form, you could redirect the user to a second form which depends on their answers. To do this, in your first form, use a redirect to send the user to a game-specific second form.

    Solution 2

    Pass the name of the game to the template and show a customised partial for the extra form fields. For this you will need a Url with a game parameter like this:

    http://www.example.com/form/show/:game_identifier

    Then in your action, read the parameter and pass it to your template.
    In the template, show a partial dependant on the game that was passed through. So only show the extra fields if a specific game was chosen before hand.

    There are further ways to accomplish this but these 2 sprung to mind first.

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

Sidebar

Related Questions

This question may sound fairly elementary, but this is a debate I had with
This may sound like a stupid question, perhaps it is. But I'm only trying
This may sound like a weird question but is there any where I can
This may sound like a simple question but as am newbie in Webservies and
I know this question may sound silly, but I am learning (at least trying)
This may sound strange but sometimes when your ASP.NET webapp isn't working and you
This may not really sound hard to do but it is currently killing me.
This may seem like a daft question, but i was wondering about how to
This may sound like a very stupid question - and probably is! For an
Hey this may sound simple but it escapes me, I have a list of

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.