Holy crap. Forgive my noobishness . -.-'

On Mar 3, 11:07 am, Tugdual SAUNIER <[email protected]> wrote:
> You define a field "type" here:
>
> $this->validatorSchema['type'] = new sfValidatorChoice(array(
>        'choices' => array_keys(Doctrine_Core::
> getTable('member')->getStates()),
>
>        ));
>
> I guess it should be 'state' ...
>
> ---
> *Tugdual Saunier*
> [email protected] <[email protected]>
> GTalk: [email protected] Skype: tucksaun
> ----------------------------------
>
> *Pensez environnement !*
> N'imprimez cet mail que si c'est vraiment nécessaire
>
> 2010/3/3 Trung Huynh <[email protected]>
>
> > Thanks for helping out.
> > I got "type [Required.]"  I don't have any "type" attribitue in my member
> > oject.
>
> > I've searched for hidden fields and this is what i got, is that okay?
>
> >> <input type="hidden" name="member[id]" value="" id="member_id" />
>
> >> <input type="hidden" name="member[_csrf_token]" 
> >> value="41bd436706bc5fffa29ac5265bc2eb22" id="member__csrf_token" />
>
> >> Complete html output:
> > -----------------------------
>
> >>   <h1>New Member</h1>
>
> >> type [Required.]<form action="/frontend_dev.php/member/create" 
> >> method="post" enctype="multipart/form-data" >
>
> >>   <table>
> >>     <tfoot>
> >>       <tr>
> >>         <td colspan="2">
>
> >>           &nbsp;<a href="/frontend_dev.php/member">Back to list</a>
>
> >>                     <input type="submit" value="Save" />
>
> >>         </td>
> >>       </tr>
> >>     </tfoot>
> >>     <tbody>
> >>       <tr><td colspan="2">
>
> >>   <ul class="error_list">
> >>     <li>Required.</li>
>
> >>   </ul>
> >> </td></tr>
> >> <tr>
> >>   <th><label for="member_email">Email</label></th>
>
> >>   <td><input type="text" name="member[email]" value="[email protected]" 
> >> id="member_email" /></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_password">Paswoord</label></th>
>
> >>   <td><input type="password" name="member[password]" id="member_password" 
> >> /></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_nickname">Schuilnaam</label></th>
>
> >>   <td><input type="text" name="member[nickname]" value="fds" 
> >> id="member_nickname" /></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_firstname">Voornaam</label></th>
>
> >>   <td><input type="text" name="member[firstname]" value="fds" 
> >> id="member_firstname" /></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_lastname">Achternaam</label></th>
>
> >>   <td><input type="text" name="member[lastname]" value="fdsf" 
> >> id="member_lastname" /></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_sex">Ik ben een</label></th>
>
> >>   <td><select name="member[sex]" id="member_sex">
>
> >> <option value="Man" selected="selected">Man</option>
>
> >> <option value="Vrouw">Vrouw</option>
> >> </select></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_age">Leeftijd</label></th>
>
> >>   <td><input type="text" name="member[age]" value="dvsf" id="member_age" 
> >> /></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_location">Stad</label></th>
>
> >>   <td><input type="text" name="member[location]" value="fds" 
> >> id="member_location" /></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_state">Provincie</label></th>
>
> >>   <td><select name="member[state]" id="member_state">
>
> >> <option value="Flevoland" selected="selected">Flevoland</option>
>
> >> <option value="Friesland">Friesland</option>
> >> <option value="Gelderland">Gelderland</option>
>
> >> <option value="Groningen">Groningen</option>
> >> <option value="Limburg">Limburg</option>
>
> >> <option value="Noord-Brabant">Noord-Brabant</option>
> >> <option value="Noord-Holland">Noord-Holland</option>
>
> >> <option value="Overijssel">Overijssel</option>
> >> <option value="Drenthe">Drenthe</option>
>
> >> <option value="Utrecht">Utrecht</option>
> >> <option value="Zeeland">Zeeland</option>
>
> >> <option value="Zuid-Holland">Zuid-Holland</option>
> >> </select></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_preference">Ik zoek een</label></th>
>
> >>   <td><select name="member[preference]" id="member_preference">
>
> >> <option value="Man" selected="selected">Man</option>
>
> >> <option value="Vrouw">Vrouw</option>
> >> </select></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_photo">Profielfoto</label></th>
>
> >>   <td><input type="file" name="member[photo]" id="member_photo" /></td>
>
> >> </tr>
> >> <tr>
> >>   <th><label for="member_profilemsg">Profiel bericht</label></th>
>
> >>   <td><textarea rows="4" cols="30" name="member[profilemsg]" 
> >> id="member_profilemsg">fdsfds</textarea><input type="hidden" 
> >> name="member[id]" value="" id="member_id" />
>
> >> <input type="hidden" name="member[_csrf_token]" 
> >> value="41bd436706bc5fffa29ac5265bc2eb22" id="member__csrf_token" /></td>
>
> >> </tr>
> >>     </tbody>
> >>   </table>
> >> </form>
>
> > On Wed, Mar 3, 2010 at 10:20 AM, Bernhard Schussek 
> > <[email protected]>wrote:
>
> >> Print the error schema of the form which gives you more details about
> >> the required field:
>
> >> echo $form->getErrorSchema();
>
> >> Bernhard
>
> >> --
> >> If you want to report a vulnerability issue on symfony, please send it to
> >> security at symfony-project.com
>
> >> 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]<symfony-users%[email protected]>
> >> For more options, visit this group at
> >>http://groups.google.com/group/symfony-users?hl=en
>
> > --
> > Cheers,
> > Trung
>
> >  --
> > If you want to report a vulnerability issue on symfony, please send it to
> > security at symfony-project.com
>
> > 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]<symfony-users%[email protected]>
> > For more options, visit this group at
> >http://groups.google.com/group/symfony-users?hl=en

-- 
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

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