It's in the manual:  
http://www.symfony-project.org/forms/1_2/en/A-Widgets#chapter_a_sfwidgetformschema


On Thu, 24 Sep 2009 23:20:25 +0200, bghost <[email protected]> wrote:

>
> Ok, I found problem:
>
>
> The form rendering process inserting something like this for the form
> rows:
>
> <form action="...bla...bla..">
> <input type="hidden" name="symfony" value="3d454099...." />
> <tr>
>   <th><label for="first_name">First name</label></th>
>   <td><input type="text" name="first_name" value="Fabien" class="foo"
> id="first_name" /></td>
> </tr>
> <tr>
>   <th><label for="last_name">Last name</label></th>
>   <td><input type="text" name="last_name" value="Potencier"
> id="last_name" /><input type="hidden" name="id" value="1" id="id"/></
> td>
> </tr>
> </form>
>
> This is bad formatted HTML - where is <table> tag? Using <tr>, <th>
> and <td> without table - terrible !
>  If you put this form within a table cell, you  will get the nightmare
> such I got! And I lost 2 hours
>  to find where is problem! Blah...blah ...blah....yes Symfony forms
> are ...bla ...bla ..bla
>
> And where is the problem guys? I think the problem is that you
> obviously
> do not suffer any criticism.
>
> WBR,
> Ghost3D
>
>
> On Sep 24, 10:23 pm, Sid Bachtiar <[email protected]> wrote:
>> Seriously, if you had not posted this, we'd still think you're a smart
>> guy, who just doesn't like Symfony's way of doing things.
>>
>> But now, well ... familiar with the quote below?
>>
>> "Better to remain silent and be thought a fool than to open one's
>> mouth and remove all doubt"
>>
>>
>>
>> On Fri, Sep 25, 2009 at 3:04 AM, bghost <[email protected]> wrote:
>>
>> > This is generated HTML code that I got after inserting the language
>> > component within a table cell:
>>
>> > <td><?php include_component('language', 'language') ?></td>
>>
>> > where component 'language' is a component that uses Symfony WEB forms:
>> > (from Jobeet tutorial):
>>
>> > <form action="/change_language">
>> >  <input name="symfony" value="25f22a4d2133d1428b9bd2fb7c475162"
>> > type="hidden">
>> > </form>
>> > </td>
>> > </tr>
>> > <tr>
>> >  <th><label for="language">Language</label></th>
>> >  <td><select name="language" id="language">
>> > <option value="en" selected="selected">English</option>
>> > <option value="fr">French</option>
>> > </select>
>>
>> > This is nightmare for all WEB designers.
>>
>> > WBR,
>> > Ghost3D
>>
>> > On Sep 24, 11:32 am, Matt Robinson <[email protected]> wrote:
>> >> On Sep 23, 12:29 pm, bghost <[email protected]> wrote:
>>
>> >> > First:
>> >> > [..] So you complicate some tasks in the Symfony
>> >> > framework that already was simple and good.
>>
>> >> Well, that's certainly an opinion.
>>
>> >> > Second:
>> >> > Almost 90% of the code that generates the Symfony framework
>> >> > developer need to modify or re-write
>>
>> >> If the generated CRUD isn't helpful, don't use it. It's a tiny part  
>> of
>> >> the framework that has a very specific use. You're complaining that
>> >> your swiss army knife is rubbish because the corkscrew is a really  
>> bad
>> >> tool for cutting string.
>>
>> >> > Third:
>> >> > The result of all this is a complex directory structure, many empty
>> >> > classes that only contain a skeleton and just inherits one of the  
>> base
>> >> > classes, and finally the CRUD code that always must be re-written.
>>
>> >> It's not complicated, it's deep. The rules are very simple. So what  
>> if
>> >> you don't need the base-class inheritance style for 90% of the time?
>> >> It doesn't stop you doing anything else, it isn't slower, and when  
>> you
>> >> need it, it's really, really nice to have. You're complaining that
>> >> some things are complicated, but refusing to learn why. Don't wave
>> >> your ignorance around as if it's somehow a good thing; it's  
>> offensive.
>>
>> >> > And to get all that, the programmer must learn a bunch of different
>> >> > configuration and command line options.
>>
>> >> Can, not must.
>>
>> >> > And when a programmer, after a painstaking setup and configuration
>> >> > of various options and parameters, finally gets the generated code,
>> >> > he must re-write 90% of the generated code.
>>
>> >> I call bullshit, sir. You're on a mailing list *full* of people who
>> >> are proof that this is a lie.
>>
>> --
>> Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz
> >


-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to