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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T10:31:57+00:00 2026-06-02T10:31:57+00:00

This question is so basic, it’s kind of embarrassing, but here goes… This is

  • 0

This question is so basic, it’s kind of embarrassing, but here goes…

This is for Symfony 1.4 – I am trying to modify some auto-generated forms in a Symfony 1.4 app. The problem is, the widgets are rendered too small to display all of the text in the field. For example, in the database table, I have a field of type varchar(50), but the widget only displays 20 characters. I have tried to increase the size in the _form class e.g.

<td colspan="4"> <?php echo $form['email'] ?></td>

but this doesn’t appear to have any effect.

Any help is much appreciated.

  • 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-06-02T10:32:07+00:00Added an answer on June 2, 2026 at 10:32 am

    You can achieve that in differents ways.

    • Associate a class/style in the template:

    You give some attributes to the render.

    <?php echo $form->render(array('email' => array('class' => 'email'))) ?>
    <?php echo $form['email']->renderRow(array('class' => 'email')) ?>
    
    // Both generate HTML
    <input type="text" name="contact[email]" value="" id="contact_email" class="email" />
    
    • Associate the class/style in the widget:

    You give some attributes to the widget.

    $this->widgetSchema['email'] = new sfWidgetFormInput(array(), array('class' => 'email')); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This could be a very basic question but i want to confirm here. Im
I realize this question is pretty basic, but I'm really stuck. I have a
guys I know this question is very basic but I've met in few publications
Forgive my ignorance in asking this basic question but I've become so used to
This might be basic question but how do I create a list of lists
This might be basic question, however I am confused on some .Net Concpets. I
This is very basic question from programming point of view but as I am
I know this question is quite basic but since there is lot of confusion
This question is so basic that I'm almost embarrassed to ask it, but it's
Apologies for this basic question, but I am noob stumped. The below code works

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.