[symfony-users] Re: Forms & Entities with Association Mappings

2011-06-17 Thread Aaron DM
Whoa that's it! Thanks, not sure how I missed that - I even looked over the 
documentation :S

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms & Entities with Association Mappings

2011-06-17 Thread Grégoire
I think you should create a separate form for Address entity and embed
it in the user form, see 
http://symfony.com/doc/current/book/forms.html#embedded-forms

On 16 juin, 19:31, Aaron DM  wrote:
> Hello,
>
> I was wondering how I would accomplish this.
>
> I want to create a single FormType for the entity "User" with has an
> association mapping "Address" (OneToOne).
> How exactly do I create the form fields for the information in the
> associated Address Entity?
>
> Example entities:https://gist.github.com/8a5b071fa6c9cbda4ae7
>
> I basically want a single form where I get the options to edit:
>
> - Name
> - Postal Code
>
> Do I create a separate form for my Address entity or is there another way to
> do it?
>
> Thanks

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and Entity Annotation Validation...

2011-04-12 Thread spike3111
In your code you use @validation, but now it's @assert
Example from http://symfony.com/doc/2.0/book/validation.html
// Acme/BlogBundle/Author.php
class Author
{
/**
 * @assert:Choice({"male", "female"})
 */
protected $gender;
}

On 12 avr, 12:45, kassel  wrote:
> Hi, as i undertood i've got the same problem,  the annotations dont
> wark, and even email work.
> Any idea
> Thanks
>
> On 18 mar, 00:02, j_stout  wrote:
>
>
>
>
>
>
>
> > Basically I just got a small understanding on a service, but still no
> > clue how they pertain to forms.  Also there is no documentation on
> > adding validation groups via Entity Annotations, so hopefully all
> > these things get solved one day.  So if someone can guide me on how to
> > do validation inside the entity and have smaller forms, that would be
> > extremely helpful.  I've been stuck on this all day and I'm almost
> > ready to give up.
>
> > On Mar 16, 4:35 pm, j_stout  wrote:
>
> > > Here is my paste:http://pastebin.com/9gNhD3d9
>
> > > First and foremost, I love the direction S2 is going on everything.
> > > I'm just stuck at this one point and don't understand what's going on.
>
> > > I'm starting to think that Validation in Entity Annotations isn't the
> > > way to go.  It works when I'm starting a new entity Object (ie. User)
> > > and need all the required fields to validate properly, but when I'm
> > > ready to validate whether a login is correct or not, or if a user
> > > needs to update just one element of his profile (such as his aform
> > > only with a textarea for his Bio), it seems to be grabbing ALL
> > > validation constraints and casting errors on variables that aren't
> > > even in theform... (refer to pastehttp://pastebin.com/9gNhD3d9)
>
> > > What is the best practice (or going to be) for validating forms as
> > > they come (logins / inline edits / etc)?
>
> > > PS. Good job Bernhard on theFormcomponent. What's an estimation on
> > > when it will be finished?

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and Entity Annotation Validation...

2011-04-12 Thread kassel
Hi, as i undertood i've got the same problem,  the annotations dont
wark, and even email work.
Any idea
Thanks

On 18 mar, 00:02, j_stout  wrote:
> Basically I just got a small understanding on a service, but still no
> clue how they pertain to forms.  Also there is no documentation on
> adding validation groups via Entity Annotations, so hopefully all
> these things get solved one day.  So if someone can guide me on how to
> do validation inside the entity and have smaller forms, that would be
> extremely helpful.  I've been stuck on this all day and I'm almost
> ready to give up.
>
> On Mar 16, 4:35 pm, j_stout  wrote:
>
>
>
>
>
>
>
> > Here is my paste:http://pastebin.com/9gNhD3d9
>
> > First and foremost, I love the direction S2 is going on everything.
> > I'm just stuck at this one point and don't understand what's going on.
>
> > I'm starting to think that Validation in Entity Annotations isn't the
> > way to go.  It works when I'm starting a new entity Object (ie. User)
> > and need all the required fields to validate properly, but when I'm
> > ready to validate whether a login is correct or not, or if a user
> > needs to update just one element of his profile (such as his aform
> > only with a textarea for his Bio), it seems to be grabbing ALL
> > validation constraints and casting errors on variables that aren't
> > even in theform... (refer to pastehttp://pastebin.com/9gNhD3d9)
>
> > What is the best practice (or going to be) for validating forms as
> > they come (logins / inline edits / etc)?
>
> > PS. Good job Bernhard on theFormcomponent. What's an estimation on
> > when it will be finished?

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms escaping quotes on input

2011-04-11 Thread Richtermeister
Could this be related to the php setting "magic quotes"?

Daniel

On Apr 10, 11:47 am, Simon Cast  wrote:
> I recently upgraded to 1.4.12 and this has produced the odd error
> where form input is escaping quotes on entry to the system. By this I
> mean I echoed the clean & bound form and the text field showed the
> escaped text e.g.
>
> \"This is quoted\"
>
> Any idea why this is happening and what I can do to unescape the input
> text?

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and Entity Annotation Validation...

2011-03-17 Thread j_stout
Basically I just got a small understanding on a service, but still no
clue how they pertain to forms.  Also there is no documentation on
adding validation groups via Entity Annotations, so hopefully all
these things get solved one day.  So if someone can guide me on how to
do validation inside the entity and have smaller forms, that would be
extremely helpful.  I've been stuck on this all day and I'm almost
ready to give up.

On Mar 16, 4:35 pm, j_stout  wrote:
> Here is my paste:http://pastebin.com/9gNhD3d9
>
> First and foremost, I love the direction S2 is going on everything.
> I'm just stuck at this one point and don't understand what's going on.
>
> I'm starting to think that Validation in Entity Annotations isn't the
> way to go.  It works when I'm starting a new entity Object (ie. User)
> and need all the required fields to validate properly, but when I'm
> ready to validate whether a login is correct or not, or if a user
> needs to update just one element of his profile (such as his a form
> only with a textarea for his Bio), it seems to be grabbing ALL
> validation constraints and casting errors on variables that aren't
> even in the form... (refer to pastehttp://pastebin.com/9gNhD3d9)
>
> What is the best practice (or going to be) for validating forms as
> they come (logins / inline edits / etc)?
>
> PS. Good job Bernhard on the Form component. What's an estimation on
> when it will be finished?

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and validation

2011-02-17 Thread Lideln
Hi !

I fixed the issue by removing my lame ctor and passing the name
parameter to the create() factory instead as advised.

Thank you all !


On 16 fév, 10:51, Bernhard Schussek  wrote:
> Oops, parentheses I mean.
>
> /** @validation:NotNull */
> and
> /** @validation:NotNull() */
>
> both are valid.
>
> 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Forms and validation

2011-02-16 Thread Bernhard Schussek
Oops, parentheses I mean.

/** @validation:NotNull */
and
/** @validation:NotNull() */

both are valid.

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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and validation

2011-02-16 Thread Lideln
Hi,

I did not understand the "parent" thing ?
Is there something wrong with my code ? I hope so, otherwise I would
not understand why I got this error :-/

On 16 fév, 00:27, Bernhard Schussek  wrote:
> > Correct syntax for annotation-validators is to use parents in the end:
> > email(), NotBlank()...
>
> This is not true. You can leave away the parents just as well.
>
> 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and validation

2011-02-16 Thread Lideln


On 16 fév, 00:27, Bernhard Schussek  wrote:
> > Correct syntax for annotation-validators is to use parents in the end:
> > email(), NotBlank()...
>
> This is not true. You can leave away the parents just as well.
>
> Bernhard

Sorry what do you guys mean by parents ?
Is there something wrong with my code ? But if there is not, why did I
get that strange error ?

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


Re: [symfony-users] Re: Forms and validation

2011-02-15 Thread Bernhard Schussek
> Correct syntax for annotation-validators is to use parents in the end:
> email(), NotBlank()...

This is not true. You can leave away the parents just as well.

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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and validation

2011-02-15 Thread Nikita Korotaev
Instead of using constructor, add a name in Create function:
$oForm = RegisterForm::create($this->get('form.context'), "Registration");

Correct syntax for annotation-validators is to use parents in the end:
email(), NotBlank()...

In all other cases your code seems to be valid. Your entity class doesn't 
need to extend any other class in order validators to work.

Regards,
Nikita
 

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and validation

2011-02-15 Thread Lideln
Hi Nikita,

Thanks for the answer.
I had already discovered the form name parameter. Only I fixed it by
creating a ctor in my form and calling
parent::__construct('register').
The topic you kindly gave me did not help. I still have the " The
option "validator" is required for validating  " error.
Just as if the validator was not existing in the context ($oForm =
RegisterForm::create($this->get('form.context'));)

Here is my code, is there anything wrong with it ?


[controller]
$oRequest = new RegisterRequest();
$oForm = RegisterForm::create($this->get('form.context'));
$oForm->bind($this->get('request'), $oRequest);
if ($oForm->isValid())
{
echo 'Form valid !';
}


[form]
class RegisterForm extends Form
{
public function __construct()
{
parent::__construct('register');
}

protected function configure()
{
$this->add(new TextField('email', array('max_length' => 100)));
$this->add(new TextField('pseudo', array('max_length' => 18)));
$this->add(new PasswordField('password', array('max_length' =>
45)));
}
}


[domain object]
class RegisterRequest
{
/**
 * @validation:Email
 * @validation:MaxLength(100)
 * @validation:NotBlank
 */
protected $email;

/**
 * @validation:MaxLength(18)
 * @validation:NotBlank
 */
protected $pseudo;

/**
 * @validation:MaxLength(40)
 * @validation:NotBlank
 */
protected $password;

  // getters and setters
}

[config]
app.config:
error_handler: null
validation:{ enabled: true, annotations: true }



On 15 fév, 17:23, Nikita Korotaev  wrote:
> There is no such thing like EmailField at the moment, I don't know why it's
> in docs. You should use textField and set Email validator instead.
> The form creation seem to be valid in docs, only missing the name parameter.
> Check this topic for more 
> information:https://groups.google.com/forum/#!topic/symfony-users/ylWVP5KsAEw
>
> Regards,
> Nikita

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and validation

2011-02-15 Thread Lideln
Hi Nikita,

Yes I already discovered the missing name by myself and added a
__construct() in my RegisterForm class, that is calling
parent::__construct('register') and it works fine.
But the validators don't work, I got this strange error as if a
Validation instance does not exist in the context ($this-
>get('form.context') ??).
Maybe I should make my RegisterRequest class extend some Validation
class ? Or am I missing some config.yml entries ?
I can give you my code this evening, I'm at the office right now.
Any help would be greatly appreciated (I have several questions
regarding sf2 but form validation will be enough for now ^^)

Kind regards,

Lideln

On 15 fév, 17:23, Nikita Korotaev  wrote:
> There is no such thing like EmailField at the moment, I don't know why it's
> in docs. You should use textField and set Email validator instead.
> The form creation seem to be valid in docs, only missing the name parameter.
> Check this topic for more 
> information:https://groups.google.com/forum/#!topic/symfony-users/ylWVP5KsAEw
>
> Regards,
> Nikita

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms and validation

2011-02-15 Thread Justin Fortier
There used to be an email field from what I've heard, but it's
redundant because of the textfield. The only reason the url field is
there, is because you can set it up for different protocols.

On Feb 15, 11:23 am, Nikita Korotaev  wrote:
> There is no such thing like EmailField at the moment, I don't know why it's
> in docs. You should use textField and set Email validator instead.
> The form creation seem to be valid in docs, only missing the name parameter.
> Check this topic for more 
> information:https://groups.google.com/forum/#!topic/symfony-users/ylWVP5KsAEw
>
> Regards,
> Nikita

-- 
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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms issue: Unknown "required" field

2010-03-03 Thread Trung Huynh
Holy crap. Forgive my noobishness . -.-'

On Mar 3, 11:07 am, Tugdual SAUNIER  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*
> tugdual.saun...@gmail.com 
> GTalk: tucks...@gmail.com Skype: tucksaun
> --
>
> *Pensez environnement !*
> N'imprimez cet mail que si c'est vraiment nécessaire
>
> 2010/3/3 Trung Huynh 
>
> > 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?
>
> >> 
>
> >>  >> value="41bd436706bc5fffa29ac5265bc2eb22" id="member__csrf_token" />
>
> >> Complete html output:
> > -
>
> >>   New Member
>
> >> type [Required.] >> method="post" enctype="multipart/form-data" >
>
> >>   
> >>     
> >>       
> >>         
>
> >>            Back to list
>
> >>                     
>
> >>         
> >>       
> >>     
> >>     
> >>       
>
> >>   
> >>     Required.
>
> >>   
> >> 
> >> 
> >>   Email
>
> >>    >> id="member_email" />
>
> >> 
> >> 
> >>   Paswoord
>
> >>    >> />
>
> >> 
> >> 
> >>   Schuilnaam
>
> >>    >> id="member_nickname" />
>
> >> 
> >> 
> >>   Voornaam
>
> >>    >> id="member_firstname" />
>
> >> 
> >> 
> >>   Achternaam
>
> >>    >> id="member_lastname" />
>
> >> 
> >> 
> >>   Ik ben een
>
> >>   
>
> >> Man
>
> >> Vrouw
> >> 
>
> >> 
> >> 
> >>   Leeftijd
>
> >>    >> />
>
> >> 
> >> 
> >>   Stad
>
> >>    >> id="member_location" />
>
> >> 
> >> 
> >>   Provincie
>
> >>   
>
> >> Flevoland
>
> >> Friesland
> >> Gelderland
>
> >> Groningen
> >> Limburg
>
> >> Noord-Brabant
> >> Noord-Holland
>
> >> Overijssel
> >> Drenthe
>
> >> Utrecht
> >> Zeeland
>
> >> Zuid-Holland
> >> 
>
> >> 
> >> 
> >>   Ik zoek een
>
> >>   
>
> >> Man
>
> >> Vrouw
> >> 
>
> >> 
> >> 
> >>   Profielfoto
>
> >>   
>
> >> 
> >> 
> >>   Profiel bericht
>
> >>    >> id="member_profilemsg">fdsfds >> name="member[id]" value="" id="member_id" />
>
> >>  >> value="41bd436706bc5fffa29ac5265bc2eb22" id="member__csrf_token" />
>
> >> 
> >>     
> >>   
> >> 
>
> > On Wed, Mar 3, 2010 at 10:20 AM, Bernhard Schussek 
> > 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 symfony-users@googlegroups.com
> >> To unsubscribe from this group, send email to
> >> symfony-users+unsubscr...@googlegroups.com
> >> 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 symfony-users@googlegroups.com
> > To unsubscribe from this group, send email to
> > symfony-users+unsubscr...@googlegroups.com
> > 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 symfony-users@googlegroups.com
To unsubscribe from this group, send email to
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/symfony-users?hl=en


[symfony-users] Re: Forms howto symfony 1.4

2010-02-24 Thread Massimiliano Arione
http://www.symfony-project.org/forms/1_4/

On 22 Feb, 20:49, Diego Bello  wrote:
> Hi guys,
>
> Is there any documentation about how to use forms in symfony 1.4?.
> What I want to do is to change a field from text input to select.
>
> I tried rewritting the form putting the new content in
> lib/form/doctrine/, but the text input is still showing so I think I
> need some more background on forms handling in Symfony. I really miss
> the definitive guide for 1.3 and 1.4 versions :S.
>
> Regards,
> --
> Diego Bello Carreño

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



[symfony-users] Re: Forms howto symfony 1.4

2010-02-23 Thread Tom Ptacnik
There are so much documentation of what you want to do


On 22 ún, 20:49, Diego Bello  wrote:
> Hi guys,
>
> Is there any documentation about how to use forms in symfony 1.4?.
> What I want to do is to change a field from text input to select.
>
> I tried rewritting the form putting the new content in
> lib/form/doctrine/, but the text input is still showing so I think I
> need some more background on forms handling in Symfony. I really miss
> the definitive guide for 1.3 and 1.4 versions :S.
>
> Regards,
> --
> Diego Bello Carreño

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



[symfony-users] Re: Forms howto symfony 1.4

2010-02-22 Thread rooster (Russ)
The definitive guide will be released (under a different name) some
point soon, in the meantime - the forms docs for 1.2 are pretty much
the same so give those a whirl!

Check out Appendix A and B (widgets and validators) any you can't go
far wrong.

Russ.

On Feb 22, 2:49 pm, Diego Bello  wrote:
> Hi guys,
>
> Is there any documentation about how to use forms in symfony 1.4?.
> What I want to do is to change a field from text input to select.
>
> I tried rewritting the form putting the new content in
> lib/form/doctrine/, but the text input is still showing so I think I
> need some more background on forms handling in Symfony. I really miss
> the definitive guide for 1.3 and 1.4 versions :S.
>
> Regards,
> --
> Diego Bello Carreño

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



[symfony-users] Re: Forms - a mini survey

2009-11-19 Thread Dennis
Well, no one likes to tag onto a 'whining' post. I shouldn't be
surprised :-)

When I'm rich, (because of using symfony), I will hire somebody to
produce 'database mentality' documentation. (See Postgres docs, or
Oracle docs)

On Nov 12, 8:40 pm, Dennis  wrote:
> I have had nothing but grief when it comes to using forms in Symfony.
> I find that if I build a page using a form for one table, well of
> course that works. But any time that I want more than one table's
> information to go to or from a user, and with validation/file upload/
> widgets, LOTS of extra coding is needed in several places and it seems
> inconsistent with each different approach I've seen on the web.
>
> ONE way that I've heard of a successful company doing it without
> having to fight the minimal documentation and side effects with
> embedding/merging is DON'T do either. Use a custom sfForm with hand
> built validators and widgets. THEN use the ORM to save things.
>
> So the survey is do you do your forms with:
>
> A/ Only single table user displayed forms.
>
> B/ Using symfony embedding or merging functions.
>
> C/ Custom forms and handle parent child data in the Actions.
>
> D/ Use database views which symfony treats as just a table ( and you
> get exactly
>     the form you want by specifying the view. (IS THIS POSSIBLE ;-) ?
>
> I'll give this 1-2 weeks 'out there', then I will summarize the
> results in a post to this.

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-us...@googlegroups.com.
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=.




[symfony-users] Re: Forms

2009-08-24 Thread NairuS
009/8/24 NairuS 

> Hello,
> Yes I do this method for display severals forms in the same view, if your
> schema allowed that.
> But I don't know how to override the labels of my embedded form's fields ?
> It is possible ?
>
forget my question, I found the solution here:
http://www.symfony-project.org/forms/1_2/en/08-Internationalisation-and-Localisation
:)


> With the admin-generator I was able to change only the labels of the main
> form.
> Thanks
> NairuS
>
> 2009/8/6 Martin Ibarra Cervantes 
>
>> you can embebed a form and with unset(); in lib/form you can disabled the
>> fields in the function configure().
>>
>> On Tue, Aug 4, 2009 at 9:07 AM, Richtermeister  wrote:
>>
>>>
>>> Hi juaninf,
>>>
>>> you cannot auto-generate forms that span more than 1 table.
>>> However, once all forms are generated, you can embed one inside the
>>> other via the embedForm() method.
>>>
>>> Hope this helps.
>>> Daniel
>>>
>>>
>>> On Aug 3, 3:12 pm, juaninf  wrote:
>>> > I know that the php symfony propel:build-forms command generates the
>>> > forms taking the fields that were mapped of a table, but i want make
>>> > this, in one form only with two tables, this is possible make manually
>>> > and add one clase within of lib/form path? or symfony can be make
>>> > automatic
>>>
>>>
>>
>> >>
>>
>

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



[symfony-users] Re: Forms

2009-08-24 Thread NairuS
Hello,
Yes I do this method for display severals forms in the same view, if your
schema allowed that.
But I don't know how to override the labels of my embedded form's fields ?
It is possible ?
With the admin-generator I was able to change only the labels of the main
form.
Thanks
NairuS

2009/8/6 Martin Ibarra Cervantes 

> you can embebed a form and with unset(); in lib/form you can disabled the
> fields in the function configure().
>
> On Tue, Aug 4, 2009 at 9:07 AM, Richtermeister  wrote:
>
>>
>> Hi juaninf,
>>
>> you cannot auto-generate forms that span more than 1 table.
>> However, once all forms are generated, you can embed one inside the
>> other via the embedForm() method.
>>
>> Hope this helps.
>> Daniel
>>
>>
>> On Aug 3, 3:12 pm, juaninf  wrote:
>> > I know that the php symfony propel:build-forms command generates the
>> > forms taking the fields that were mapped of a table, but i want make
>> > this, in one form only with two tables, this is possible make manually
>> > and add one clase within of lib/form path? or symfony can be make
>> > automatic
>>
>>
>
> >
>

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



[symfony-users] Re: [FORMS] Merge forms in backend

2009-08-19 Thread Donald Tyler

I think most people (including myself) are going to have a very hard
time understanding what you are asking here.

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



[symfony-users] Re: Forms

2009-08-06 Thread Martin Ibarra Cervantes
you can embebed a form and with unset(); in lib/form you can disabled the
fields in the function configure().

On Tue, Aug 4, 2009 at 9:07 AM, Richtermeister  wrote:

>
> Hi juaninf,
>
> you cannot auto-generate forms that span more than 1 table.
> However, once all forms are generated, you can embed one inside the
> other via the embedForm() method.
>
> Hope this helps.
> Daniel
>
>
> On Aug 3, 3:12 pm, juaninf  wrote:
> > I know that the php symfony propel:build-forms command generates the
> > forms taking the fields that were mapped of a table, but i want make
> > this, in one form only with two tables, this is possible make manually
> > and add one clase within of lib/form path? or symfony can be make
> > automatic
> >
>

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



[symfony-users] Re: Forms

2009-08-04 Thread Richtermeister

Hi juaninf,

you cannot auto-generate forms that span more than 1 table.
However, once all forms are generated, you can embed one inside the
other via the embedForm() method.

Hope this helps.
Daniel


On Aug 3, 3:12 pm, juaninf  wrote:
> I know that the php symfony propel:build-forms command generates the
> forms taking the fields that were mapped of a table, but i want make
> this, in one form only with two tables, this is possible make manually
> and add one clase within of lib/form path? or symfony can be make
> automatic
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms in backend - admin doesn't get build on the /lib/form/*.class.php model?

2009-07-16 Thread Richtermeister

Hey Tommaso,

you're saying the code never executes? Like, the configure method
never gets called?
Well, that's an issue ;)

Is that really the class that extends the Base Model class that the
admin generator is working with? (look at the admin generator.yml for
the model class it generates for). See if you don't have 2 classes
with very similar names (first letter capitalized, or something).
Windows systems don't show those as separate files, but linux does
(it's case-sensitive). I've had cases where I generated a model and
later changed the phpName attribute of a model definition to
lowercase, generated again, and then I'd have 2 files that would
collide and it was hard to tell.
Look at the cached autoload.yml.php file that lists all the classes in
your system. If that class has a similar duplicate, that would be the
issue.

Hope this helps.

Daniel


On Jul 16, 2:19 am, "Tommaso D'Argenio"  wrote:
> Hi Daniel,
> thanks for replying. I understand the /lib/form are the classes
> which can be used to override and customize the generator.yml.
>
> So now how can you help me? My BlogPostForm.class.php contains
> the following tweak:
>   public function configure()
>   {
>    //$this->setWidgets(array('body' => new
> sfExtraWidgetFormRichTextarea();))
>     //$this->widgetSchema['body']->setAttribute('skin','o2k7');
>     $this->widgetSchema['body'] =  new sfWidgetFormTextareaTinyMCE(
>       array(
>         'width'=>550,
>         'height'=>350,
>         'config'=>'theme_advanced_disable: "anchor,image,cleanup,help",
>
>                    skin_variant: "silver",
>                    skin: "o2k7",
>                    plugins :
> "spellchecker,insertdatetime,searchreplace,paste",
>                    theme_advanced_buttons1 :
> "bold,italic,underline,strikethrough,|formatselect",
>                    theme_advanced_buttons2 :
> "cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|insertdate,inserttime|code",
>                    theme_advanced_buttons3 : "",
>                    theme_advanced_buttons4 : ""
>                   ',
>         'theme'   =>  sfConfig::get('app_tinymce_theme','advanced'),
>       ),
>       array(
>         'class'   =>  'tiny_mce'
>       )
>     );
>
>   $js_path = sfConfig::get('sf_rich_text_js_dir') ?
> '/'.sfConfig::get('sf_rich_text_js_dir').'/tiny_mce.js' :
> '/sf/tinymce/js/tiny_mce.js';
>     sfContext::getInstance()->getResponse()->addJavascript($js_path);
>   }
>
> please also note the first two commented row, from other attempts. None of
> this code get executed by the way.
>
> I'll appreciate if you could help me understand and get it to work :)
>
> thanks
> T.
>
> 2009/7/15 Richtermeister 
>
>
>
> > Hey Tommaso,
>
> > the admin generator does use the form classes in /lib/form. The
> > generator.yml is a fairly superficial layer of control over which
> > fields get displayed in which order with which labels, etc.. but it is
> > the form class itself where you want to make the major modifications,
> > like swapping out a widget class. They swapping the field for
> > something else and see if it works, maybe it's just and issue of the
> > tinyMCE assets not being included properly..
>
> > I've got the FCKEditor working properly on all my textareas now, so it
> > does work.
> > Let me know if you need more specific help.
>
> > Daniel
>
> > On Jul 15, 9:09 am, "Tommaso D'Argenio"  wrote:
> > > Hi,
>
> > > thanks for your reply.
>
> > > So backend form are solely generated from the module's generator.yml?
>
> > > If so (because I've got different point of view on this, and also in the
> > > book and plugin guides
> > > it is said to touch the form class also) then the ExtraFormPlugin is not
> > > well designed as it
> > > doesn't allow to customize the rich editor.
>
> > > Anybody else has another point of view before I go and tweak the helper,
> > Is
> > > that possible
> > > that everybody using the rich editor doesn't have the need to customize
> > it?
>
> > > Cheers
> > > T.
>
> > > 2009/7/15 Germana Oliveira 
>
> > > > if you want to modify the backend - admin, you have to do it using the
> > > > generator.yml of every module (at least that is what i understood).
>
> > > > read the symfony's book chapter about it.
>
> > > > ___
> > > > Hi All,
>
> > > > I'm struggling to get this to work properly, I've posted already on
> > > > the forum but haven't got much luck
> > > > hopefully I'll get more feedback over here.
>
> > > > I've created the Blog according to the 1hr tutorial, as I wanted to
> > > > test some plugins on a simple application before
> > > > applying them on a more complex one.
>
> > > > I've installed two plugins the AdminDashBoard (which doesn't work
> > > > properly and still waiting some feedback from the author) and the
> > > > sfFormExtraPlugin where I wanted to use the tinyMCE editor.
>
> > > > Now if I follow the user guide I know I hav

[symfony-users] Re: Forms in backend - admin doesn't get build on the /lib/form/*.class.php model?

2009-07-16 Thread Tommaso D'Argenio
Hi Daniel,
thanks for replying. I understand the /lib/form are the classes
which can be used to override and customize the generator.yml.

So now how can you help me? My BlogPostForm.class.php contains
the following tweak:
  public function configure()
  {
   //$this->setWidgets(array('body' => new
sfExtraWidgetFormRichTextarea();))
//$this->widgetSchema['body']->setAttribute('skin','o2k7');
$this->widgetSchema['body'] =  new sfWidgetFormTextareaTinyMCE(
  array(
'width'=>550,
'height'=>350,
'config'=>'theme_advanced_disable: "anchor,image,cleanup,help",

   skin_variant: "silver",
   skin: "o2k7",
   plugins :
"spellchecker,insertdatetime,searchreplace,paste",
   theme_advanced_buttons1 :
"bold,italic,underline,strikethrough,|formatselect",
   theme_advanced_buttons2 :
"cut,copy,paste,pastetext,pasteword,|,search,replace,|,bullist,numlist,|,outdent,indent,blockquote,|,undo,redo,|insertdate,inserttime|code",
   theme_advanced_buttons3 : "",
   theme_advanced_buttons4 : ""
  ',
'theme'   =>  sfConfig::get('app_tinymce_theme','advanced'),
  ),
  array(
'class'   =>  'tiny_mce'
  )
);


  $js_path = sfConfig::get('sf_rich_text_js_dir') ?
'/'.sfConfig::get('sf_rich_text_js_dir').'/tiny_mce.js' :
'/sf/tinymce/js/tiny_mce.js';
sfContext::getInstance()->getResponse()->addJavascript($js_path);
  }

please also note the first two commented row, from other attempts. None of
this code get executed by the way.

I'll appreciate if you could help me understand and get it to work :)

thanks
T.

2009/7/15 Richtermeister 

>
> Hey Tommaso,
>
> the admin generator does use the form classes in /lib/form. The
> generator.yml is a fairly superficial layer of control over which
> fields get displayed in which order with which labels, etc.. but it is
> the form class itself where you want to make the major modifications,
> like swapping out a widget class. They swapping the field for
> something else and see if it works, maybe it's just and issue of the
> tinyMCE assets not being included properly..
>
> I've got the FCKEditor working properly on all my textareas now, so it
> does work.
> Let me know if you need more specific help.
>
> Daniel
>
>
> On Jul 15, 9:09 am, "Tommaso D'Argenio"  wrote:
> > Hi,
> >
> > thanks for your reply.
> >
> > So backend form are solely generated from the module's generator.yml?
> >
> > If so (because I've got different point of view on this, and also in the
> > book and plugin guides
> > it is said to touch the form class also) then the ExtraFormPlugin is not
> > well designed as it
> > doesn't allow to customize the rich editor.
> >
> > Anybody else has another point of view before I go and tweak the helper,
> Is
> > that possible
> > that everybody using the rich editor doesn't have the need to customize
> it?
> >
> > Cheers
> > T.
> >
> > 2009/7/15 Germana Oliveira 
> >
> >
> >
> > > if you want to modify the backend - admin, you have to do it using the
> > > generator.yml of every module (at least that is what i understood).
> >
> > > read the symfony's book chapter about it.
> >
> > > ___
> > > Hi All,
> >
> > > I'm struggling to get this to work properly, I've posted already on
> > > the forum but haven't got much luck
> > > hopefully I'll get more feedback over here.
> >
> > > I've created the Blog according to the 1hr tutorial, as I wanted to
> > > test some plugins on a simple application before
> > > applying them on a more complex one.
> >
> > > I've installed two plugins the AdminDashBoard (which doesn't work
> > > properly and still waiting some feedback from the author) and the
> > > sfFormExtraPlugin where I wanted to use the tinyMCE editor.
> >
> > > Now if I follow the user guide I know I have to enable the rich editor
> > > from within the generator.yml for a specific module, and this work.
> > > Unfortunately I can't modify the editor attributes or add more options
> > > as the helper which create the editor's JS code doesn't process
> > > anything other than the CSS.
> >
> > > So the best action would be to scratch the edit configuration in
> > > generator.yml and customize the whole thing in the /lib/form/
> > > BlogPostForm.class.php, but whatever I put this class it won't be
> > > processed and what I'll get is either the plain textarea or the rich
> > > editor preconfigured from the generator.yml .. It seems to be that
> > > only the generator.yml is processed. I've also tried to put some debug
> > > lines in the BlogPostForm.class.php configure's method to check if it
> > > is executed with no luck..is like it doesn't get processed at all.
> >
> > > Anybody can help?
> >
> > > Thanks
> >
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony

[symfony-users] Re: Forms in backend - admin doesn't get build on the /lib/form/*.class.php model?

2009-07-15 Thread Richtermeister

Hey Tommaso,

the admin generator does use the form classes in /lib/form. The
generator.yml is a fairly superficial layer of control over which
fields get displayed in which order with which labels, etc.. but it is
the form class itself where you want to make the major modifications,
like swapping out a widget class. They swapping the field for
something else and see if it works, maybe it's just and issue of the
tinyMCE assets not being included properly..

I've got the FCKEditor working properly on all my textareas now, so it
does work.
Let me know if you need more specific help.

Daniel


On Jul 15, 9:09 am, "Tommaso D'Argenio"  wrote:
> Hi,
>
> thanks for your reply.
>
> So backend form are solely generated from the module's generator.yml?
>
> If so (because I've got different point of view on this, and also in the
> book and plugin guides
> it is said to touch the form class also) then the ExtraFormPlugin is not
> well designed as it
> doesn't allow to customize the rich editor.
>
> Anybody else has another point of view before I go and tweak the helper, Is
> that possible
> that everybody using the rich editor doesn't have the need to customize it?
>
> Cheers
> T.
>
> 2009/7/15 Germana Oliveira 
>
>
>
> > if you want to modify the backend - admin, you have to do it using the
> > generator.yml of every module (at least that is what i understood).
>
> > read the symfony's book chapter about it.
>
> > ___
> > Hi All,
>
> > I'm struggling to get this to work properly, I've posted already on
> > the forum but haven't got much luck
> > hopefully I'll get more feedback over here.
>
> > I've created the Blog according to the 1hr tutorial, as I wanted to
> > test some plugins on a simple application before
> > applying them on a more complex one.
>
> > I've installed two plugins the AdminDashBoard (which doesn't work
> > properly and still waiting some feedback from the author) and the
> > sfFormExtraPlugin where I wanted to use the tinyMCE editor.
>
> > Now if I follow the user guide I know I have to enable the rich editor
> > from within the generator.yml for a specific module, and this work.
> > Unfortunately I can't modify the editor attributes or add more options
> > as the helper which create the editor's JS code doesn't process
> > anything other than the CSS.
>
> > So the best action would be to scratch the edit configuration in
> > generator.yml and customize the whole thing in the /lib/form/
> > BlogPostForm.class.php, but whatever I put this class it won't be
> > processed and what I'll get is either the plain textarea or the rich
> > editor preconfigured from the generator.yml .. It seems to be that
> > only the generator.yml is processed. I've also tried to put some debug
> > lines in the BlogPostForm.class.php configure's method to check if it
> > is executed with no luck..is like it doesn't get processed at all.
>
> > Anybody can help?
>
> > Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms in backend - admin doesn't get build on the /lib/form/*.class.php model?

2009-07-15 Thread Tommaso D'Argenio
Hi,

thanks for your reply.

So backend form are solely generated from the module's generator.yml?

If so (because I've got different point of view on this, and also in the
book and plugin guides
it is said to touch the form class also) then the ExtraFormPlugin is not
well designed as it
doesn't allow to customize the rich editor.

Anybody else has another point of view before I go and tweak the helper, Is
that possible
that everybody using the rich editor doesn't have the need to customize it?

Cheers
T.

2009/7/15 Germana Oliveira 

>
> if you want to modify the backend - admin, you have to do it using the
> generator.yml of every module (at least that is what i understood).
>
> read the symfony's book chapter about it.
>
> ___
> Hi All,
>
> I'm struggling to get this to work properly, I've posted already on
> the forum but haven't got much luck
> hopefully I'll get more feedback over here.
>
> I've created the Blog according to the 1hr tutorial, as I wanted to
> test some plugins on a simple application before
> applying them on a more complex one.
>
> I've installed two plugins the AdminDashBoard (which doesn't work
> properly and still waiting some feedback from the author) and the
> sfFormExtraPlugin where I wanted to use the tinyMCE editor.
>
> Now if I follow the user guide I know I have to enable the rich editor
> from within the generator.yml for a specific module, and this work.
> Unfortunately I can't modify the editor attributes or add more options
> as the helper which create the editor's JS code doesn't process
> anything other than the CSS.
>
> So the best action would be to scratch the edit configuration in
> generator.yml and customize the whole thing in the /lib/form/
> BlogPostForm.class.php, but whatever I put this class it won't be
> processed and what I'll get is either the plain textarea or the rich
> editor preconfigured from the generator.yml .. It seems to be that
> only the generator.yml is processed. I've also tried to put some debug
> lines in the BlogPostForm.class.php configure's method to check if it
> is executed with no luck..is like it doesn't get processed at all.
>
> Anybody can help?
>
> Thanks
>
>
>
> >
>

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



[symfony-users] Re: Forms: isValid() == true, isBound() == true, but getValues() == null???

2009-03-24 Thread Sid Bachtiar

Can we see your form source code? It would be easier.

> What's even more strange is that I can gain access to each value
> individually like this:
> $form['value_name']->getValue()

What is so strange about that? It's a feature of PHP5, check
http://php.oregonstate.edu/manual/en/class.arrayaccess.php

On Wed, Mar 25, 2009 at 12:33 PM, Nickolas Daskalou  wrote:
>
> sf 1.2, Propel 1.3.
>
> I love Symfony. I hate the forms framework. Probably because I don't
> understand how it all ties together. Anyway, my problem:
>
> I've bound a form ($form->bind($tainted_values)) and $form->isValid()
> returns true, as does $form->isBound().
>
> However, when I try to access the values via $form->getValues(), I get
> null. What's even more strange is that I can gain access to each value
> individually like this:
>
> $form['value_name']->getValue()
>
> Note that this is a form I have manually created and extended from the
> sfForm class.
>
> Does anyone know what the  is going on?
>
> How can I get access to all of the form values at once instead of
> manually getting each one?
> >
>



-- 
Blue Horn Ltd - System Development
http://bluehorn.co.nz

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



[symfony-users] Re: Forms: isValid() == true, isBound() == true, but getValues() == null???

2009-03-24 Thread Nickolas Daskalou
I found the problem. I had created a custom post validator like this:

class sfValidatorFoo extends sfValidatorBase
{
  public function doClean($value)
  {
  }
}

and because it doesn't return anything (null), all values were getting
filtered out. It works when I add this single line in the doClean() method:

return $value;

Thanks Nick. You're welcome Nick. Obama 2008.


2009/3/25 Nickolas Daskalou 

> sf 1.2, Propel 1.3.
>
> I love Symfony. I hate the forms framework. Probably because I don't
> understand how it all ties together. Anyway, my problem:
>
> I've bound a form ($form->bind($tainted_values)) and $form->isValid()
> returns true, as does $form->isBound().
>
> However, when I try to access the values via $form->getValues(), I get
> null. What's even more strange is that I can gain access to each value
> individually like this:
>
> $form['value_name']->getValue()
>
> Note that this is a form I have manually created and extended from the
> sfForm class.
>
> Does anyone know what the  is going on?
>
> How can I get access to all of the form values at once instead of
> manually getting each one?
>

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



[symfony-users] Re: Forms over multiple pages, save at the end?

2009-02-20 Thread shahin

i think the best solution is told by  Richtermeister
the use of session seemed to be only solution for this
but if you want use symfony power you can
use flash mechanism by setting second argument of it to 3
this mean flash data must be expired after three successively request
but be cautious the user must not page back.

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



[symfony-users] Re: Forms over multiple pages, save at the end?

2009-02-20 Thread Gareth McCumskey
Using ajax watches on the fields (observe_field) I then passed the values
that were being entered to a validation action to run validation using the
base validation rules symfony has for things like email etc and then only
allowing the "Next" button to become visible once no errors were generated.

On 2/19/09, Ant Cunningham  wrote:
>
>
> Well he is only talking about hiding/showing elements, not actually
> adding elements via AJAX requests. So in theory you could for example
> collect all the element id's with errors and then show those elements as
> opposed to the inital state of the form.
>
> Note i havent actually done this, it was jsut the first thing that
> popped into my head.
>
>
>
> John Masson wrote:
> > Hi Gareth,
> >
> > How do you go about doing validation on such a form? I've tried in the
> > past (admittedly only in 1.0) to do AJAX based forms mainly relying on
> > the observe_field tag acting on various drop downs or checkboxes to
> > populate hidden divs with new form fields based on what the user is
> > selecting. The problem with this is that it always comes unstuck when
> > the user submits the form with validation errors - While the initial
> > form will be redisplayed with all of the
> >
> > Because of this I've always stuck with a multi page approach (like
> > Richmeister) where I do a submit/validate/save to session for each
> > separate form until the final one where I pull everything back out of
> > session and write it to the DB along with the values from that final
> > form.
> >
> > Would love to hear how you've dealt with it using AJAX!
> >
> > JM
> >
> > On Feb 20, 6:15 am, Gareth McCumskey  wrote:
> >> Or you could do what we did and make all three forms into one large form
> and
> >> just use the prototype/scriptaculous effects to move from the "1st form"
> to
> >> the "2nd form" by hiding and displaying the form widgets at specific
> times
> >> or hiding and displaying the divs the form widgets are in.
> >>
> >> On 2/19/09, Richtermeister  wrote:
> >>
> >>
> >>
> >>> Hi Justin,
> >>> alternatively you really treat each form individually, and save the
> >>> valid data in the session each time, only forwarding to the next form
> >>> when the required data has been entered.
> >>> At the last form you save all to the database. I find that these kind
> >>> of process flows often need so much custom love, that using a plugin
> >>> doesn't always solve things.
> >>> Hope this helps,
> >>> Daniel
> >>> On Feb 18, 5:55 pm, Justin Davis  wrote:
>  Hey all -
>  First post on the list, really loving the community that is supporting
>  symfony.
>  I'm somewhat of a newb, but definitely making some progress.  I've run
> >>> into
>  a problem I can't figure out.
>  I've got a series of forms (3 of them), that need to be filled out in
>  series, one per page.  I'd like the information from the forms saved
> to
> >>> the
>  database when the 3rd form is submitted, not after each one
> individually,
> >>> so
>  I'll need to somehow carry the data from the earlier forms through to
> the
>  last submit, then save everything to the database there (into three
>  different tables).
>  I've looked thru the documentation and symfony forums and haven't
> found
> >>> much
>  help.  Do you bind the form, then put it into the session, or is there
>  another way?  The more specific you can be about particular actions,
> >>> etc...
>  would be really helpful.
>  Thanks for all your help!
>  Justin Davis
> > >
>
>
> >
>

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



[symfony-users] Re: Forms over multiple pages, save at the end?

2009-02-19 Thread Ant Cunningham

Well he is only talking about hiding/showing elements, not actually 
adding elements via AJAX requests. So in theory you could for example 
collect all the element id's with errors and then show those elements as 
opposed to the inital state of the form.

Note i havent actually done this, it was jsut the first thing that 
popped into my head.


John Masson wrote:
> Hi Gareth,
> 
> How do you go about doing validation on such a form? I've tried in the
> past (admittedly only in 1.0) to do AJAX based forms mainly relying on
> the observe_field tag acting on various drop downs or checkboxes to
> populate hidden divs with new form fields based on what the user is
> selecting. The problem with this is that it always comes unstuck when
> the user submits the form with validation errors - While the initial
> form will be redisplayed with all of the
> 
> Because of this I've always stuck with a multi page approach (like
> Richmeister) where I do a submit/validate/save to session for each
> separate form until the final one where I pull everything back out of
> session and write it to the DB along with the values from that final
> form.
> 
> Would love to hear how you've dealt with it using AJAX!
> 
> JM
> 
> On Feb 20, 6:15 am, Gareth McCumskey  wrote:
>> Or you could do what we did and make all three forms into one large form and
>> just use the prototype/scriptaculous effects to move from the "1st form" to
>> the "2nd form" by hiding and displaying the form widgets at specific times
>> or hiding and displaying the divs the form widgets are in.
>>
>> On 2/19/09, Richtermeister  wrote:
>>
>>
>>
>>> Hi Justin,
>>> alternatively you really treat each form individually, and save the
>>> valid data in the session each time, only forwarding to the next form
>>> when the required data has been entered.
>>> At the last form you save all to the database. I find that these kind
>>> of process flows often need so much custom love, that using a plugin
>>> doesn't always solve things.
>>> Hope this helps,
>>> Daniel
>>> On Feb 18, 5:55 pm, Justin Davis  wrote:
 Hey all -
 First post on the list, really loving the community that is supporting
 symfony.
 I'm somewhat of a newb, but definitely making some progress.  I've run
>>> into
 a problem I can't figure out.
 I've got a series of forms (3 of them), that need to be filled out in
 series, one per page.  I'd like the information from the forms saved to
>>> the
 database when the 3rd form is submitted, not after each one individually,
>>> so
 I'll need to somehow carry the data from the earlier forms through to the
 last submit, then save everything to the database there (into three
 different tables).
 I've looked thru the documentation and symfony forums and haven't found
>>> much
 help.  Do you bind the form, then put it into the session, or is there
 another way?  The more specific you can be about particular actions,
>>> etc...
 would be really helpful.
 Thanks for all your help!
 Justin Davis
> > 


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



[symfony-users] Re: Forms over multiple pages, save at the end?

2009-02-19 Thread John Masson

Hi Gareth,

How do you go about doing validation on such a form? I've tried in the
past (admittedly only in 1.0) to do AJAX based forms mainly relying on
the observe_field tag acting on various drop downs or checkboxes to
populate hidden divs with new form fields based on what the user is
selecting. The problem with this is that it always comes unstuck when
the user submits the form with validation errors - While the initial
form will be redisplayed with all of the

Because of this I've always stuck with a multi page approach (like
Richmeister) where I do a submit/validate/save to session for each
separate form until the final one where I pull everything back out of
session and write it to the DB along with the values from that final
form.

Would love to hear how you've dealt with it using AJAX!

JM

On Feb 20, 6:15 am, Gareth McCumskey  wrote:
> Or you could do what we did and make all three forms into one large form and
> just use the prototype/scriptaculous effects to move from the "1st form" to
> the "2nd form" by hiding and displaying the form widgets at specific times
> or hiding and displaying the divs the form widgets are in.
>
> On 2/19/09, Richtermeister  wrote:
>
>
>
> > Hi Justin,
>
> > alternatively you really treat each form individually, and save the
> > valid data in the session each time, only forwarding to the next form
> > when the required data has been entered.
> > At the last form you save all to the database. I find that these kind
> > of process flows often need so much custom love, that using a plugin
> > doesn't always solve things.
>
> > Hope this helps,
> > Daniel
>
> > On Feb 18, 5:55 pm, Justin Davis  wrote:
> > > Hey all -
> > > First post on the list, really loving the community that is supporting
> > > symfony.
>
> > > I'm somewhat of a newb, but definitely making some progress.  I've run
> > into
> > > a problem I can't figure out.
>
> > > I've got a series of forms (3 of them), that need to be filled out in
> > > series, one per page.  I'd like the information from the forms saved to
> > the
> > > database when the 3rd form is submitted, not after each one individually,
> > so
> > > I'll need to somehow carry the data from the earlier forms through to the
> > > last submit, then save everything to the database there (into three
> > > different tables).
>
> > > I've looked thru the documentation and symfony forums and haven't found
> > much
> > > help.  Do you bind the form, then put it into the session, or is there
> > > another way?  The more specific you can be about particular actions,
> > etc...
> > > would be really helpful.
>
> > > Thanks for all your help!
>
> > > Justin Davis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms over multiple pages, save at the end?

2009-02-19 Thread Gareth McCumskey
Or you could do what we did and make all three forms into one large form and
just use the prototype/scriptaculous effects to move from the "1st form" to
the "2nd form" by hiding and displaying the form widgets at specific times
or hiding and displaying the divs the form widgets are in.

On 2/19/09, Richtermeister  wrote:
>
>
> Hi Justin,
>
> alternatively you really treat each form individually, and save the
> valid data in the session each time, only forwarding to the next form
> when the required data has been entered.
> At the last form you save all to the database. I find that these kind
> of process flows often need so much custom love, that using a plugin
> doesn't always solve things.
>
> Hope this helps,
> Daniel
>
>
>
> On Feb 18, 5:55 pm, Justin Davis  wrote:
> > Hey all -
> > First post on the list, really loving the community that is supporting
> > symfony.
> >
> > I'm somewhat of a newb, but definitely making some progress.  I've run
> into
> > a problem I can't figure out.
> >
> > I've got a series of forms (3 of them), that need to be filled out in
> > series, one per page.  I'd like the information from the forms saved to
> the
> > database when the 3rd form is submitted, not after each one individually,
> so
> > I'll need to somehow carry the data from the earlier forms through to the
> > last submit, then save everything to the database there (into three
> > different tables).
> >
> > I've looked thru the documentation and symfony forums and haven't found
> much
> > help.  Do you bind the form, then put it into the session, or is there
> > another way?  The more specific you can be about particular actions,
> etc...
> > would be really helpful.
> >
> > Thanks for all your help!
> >
> > Justin Davis
> >
>

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



[symfony-users] Re: Forms over multiple pages, save at the end?

2009-02-19 Thread Richtermeister

Hi Justin,

alternatively you really treat each form individually, and save the
valid data in the session each time, only forwarding to the next form
when the required data has been entered.
At the last form you save all to the database. I find that these kind
of process flows often need so much custom love, that using a plugin
doesn't always solve things.

Hope this helps,
Daniel


On Feb 18, 5:55 pm, Justin Davis  wrote:
> Hey all -
> First post on the list, really loving the community that is supporting
> symfony.
>
> I'm somewhat of a newb, but definitely making some progress.  I've run into
> a problem I can't figure out.
>
> I've got a series of forms (3 of them), that need to be filled out in
> series, one per page.  I'd like the information from the forms saved to the
> database when the 3rd form is submitted, not after each one individually, so
> I'll need to somehow carry the data from the earlier forms through to the
> last submit, then save everything to the database there (into three
> different tables).
>
> I've looked thru the documentation and symfony forums and haven't found much
> help.  Do you bind the form, then put it into the session, or is there
> another way?  The more specific you can be about particular actions, etc...
> would be really helpful.
>
> Thanks for all your help!
>
> Justin Davis
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms over multiple pages, save at the end?

2009-02-19 Thread Rimenes Ribeiro
Hi Justin,
Take a look at this plugin. It's for symfony 1.0
http://raw.trac.symfony-project.org/wiki/sfPageFlowPlugin

It doesn't seem to be maintained anymore. If you can't use it, at least it
can inspire you to solve your problem.

regards,
Rimenes Ribeiro.

2009/2/18 Justin Davis 

> Hey all -
> First post on the list, really loving the community that is supporting
> symfony.
>
> I'm somewhat of a newb, but definitely making some progress.  I've run into
> a problem I can't figure out.
>
> I've got a series of forms (3 of them), that need to be filled out in
> series, one per page.  I'd like the information from the forms saved to the
> database when the 3rd form is submitted, not after each one individually, so
> I'll need to somehow carry the data from the earlier forms through to the
> last submit, then save everything to the database there (into three
> different tables).
>
> I've looked thru the documentation and symfony forums and haven't found
> much help.  Do you bind the form, then put it into the session, or is there
> another way?  The more specific you can be about particular actions, etc...
> would be really helpful.
>
> Thanks for all your help!
>
> Justin Davis
>
> >
>


-- 
Rimenes Ribeiro

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



[symfony-users] Re: Forms questions

2008-12-16 Thread Peter Bowyer

Hi Bernhard,

At 12:03 16/12/2008, Bernhard Schussek wrote:
>First of all you need to understand that
>
> 
>
>was never meant to replace custom styling. If you want to customize
>the structure, CSS classes or other attributes of the generated HTML,
>you need to do it manually in the template.

Indeed, and I am doing this already (I have a custom template for my 
form). However, applying a CSS class to fields with errors shouldn't 
be controlled manually in the template - sure the class name is a 
presentation-level item, but checking if it should be assigned to a 
form field isn't. That's bringing in too much logic.

>symfony 1.2:
>
> 
> 

Ah, I hadn't twigged that I could loop over the form to get the 
fields - I was wondering how I could do it without adding:
renderError()?>
renderError()?>

etc...

Regards,
Peter

-- 
Maple Design Ltd - Web design and application development
http://www.mapledesign.co.uk
+44 (0)845 123 8008

Reg. in England no. 05920531 


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



[symfony-users] Re: Forms questions

2008-12-16 Thread Bernhard Schussek

Hi Peter,

First of all you need to understand that



was never meant to replace custom styling. If you want to customize
the structure, CSS classes or other attributes of the generated HTML,
you need to do it manually in the template. After all, this is
template logic, and as such belongs there. Refer to the documentation
about forms for webdesigners for more details:
http://www.symfony-project.org/book/forms/1_2/en/03-Forms-for-web-Designers

Your first question won't be answered by this chapter though. The
answer is, again, to display the error messages in one place manually.

symfony 1.1:


getFormFieldSchema() as $field): ?>
renderError() ?>



symfony 1.2:



renderError() ?>




Bernhard

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



[symfony-users] Re: Forms in Symfony

2008-06-17 Thread Joao

In Symfony 1.1 is easy, after declaring the form in actions.class.php
set the default value for the field you want to set.

 $this->form = new  FormXPTZ();
  $this->form->setDefault('country','PT');


On Jun 17, 4:02 pm, Jacob Coby <[EMAIL PROTECTED]> wrote:
> You can pass an array for $selected to options_for_select().  Populate
> that array with whatever you want to be selected initially.  Or you
> can write 2 lines of javascript to select all on the client side.
>
> On Jun 17, 2008, at 10:42 AM, Dean Farrell wrote:
>
>
>
>
>
> > Hello all,
>
> >I'm not terribly familiar with Symfony, and I've inherited several
> > Symfony based projects from my predecessor.  He used the form tag
> > and the
> > select tag helpers, among others to generate a form that needs to be
> > updated.  I've been looking for something like a select_all_tag in the
> > Symfony documentation, but such a thing doesn't seem to exist.  I was
> > wondering what the proper Symfony way is to preselect all fields in
> > a select
> > field, perhaps adding a javascript function somewhere?
>
> > Thanks,
>
> > Dean Farrell
>
> --
> Jacob Coby
> [EMAIL PROTECTED]
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms in Symfony

2008-06-17 Thread Jacob Coby

You can pass an array for $selected to options_for_select().  Populate  
that array with whatever you want to be selected initially.  Or you  
can write 2 lines of javascript to select all on the client side.

On Jun 17, 2008, at 10:42 AM, Dean Farrell wrote:

>
>
> Hello all,
>
>   I'm not terribly familiar with Symfony, and I've inherited several
> Symfony based projects from my predecessor.  He used the form tag  
> and the
> select tag helpers, among others to generate a form that needs to be
> updated.  I've been looking for something like a select_all_tag in the
> Symfony documentation, but such a thing doesn't seem to exist.  I was
> wondering what the proper Symfony way is to preselect all fields in  
> a select
> field, perhaps adding a javascript function somewhere?
>
> Thanks,
>
> Dean Farrell
>
>
>
> >

--
Jacob Coby
[EMAIL PROTECTED]




--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms API

2007-09-24 Thread Davert

Hello Tristan,

Monday, September 24, 2007, 6:28:39 PM, you wrote:

> On 9/24/07, Davert <[EMAIL PROTECTED]> wrote:

>> Yep, but I didn't recieved an answer to my problem with this plugin.

> actually, you did :
> http://groups.google.com/group/symfony-users/browse_thread/thread/92ba465eaab59244

Thanks, I missed that :)
Still, I've rebuild my template with standart Object helper.


-- 
Best regards,
 Davertmailto:[EMAIL PROTECTED]


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms API

2007-09-24 Thread Tristan Rivoallan

On 9/24/07, Davert <[EMAIL PROTECTED]> wrote:

> Yep, but I didn't recieved an answer to my problem with this plugin.

actually, you did :
http://groups.google.com/group/symfony-users/browse_thread/thread/92ba465eaab59244

> It uses sfCollapseble class. It never appears in the code of plugin or Symfony

the class comes from another plugin.

++
tristan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms API

2007-09-24 Thread Davert

Hello Tristan,

Monday, September 24, 2007, 11:54:06 AM, you wrote:

> hi,

> On 9/22/07, Jack Bates <[EMAIL PROTECTED]> wrote:

>> Is there anything like the Drupal Forms API for symfony? For
>> programmatically writing standards accessible forms? Thanks, Jack

> this may help :
> http://trac.symfony-project.com/trac/wiki/sfFormBuilderPlugin

Yep, but I didn't recieved an answer to my problem with this plugin.
It uses sfCollapseble class. It never appears in the code of plugin or Symfony

-- 
Best regards,
 Davertmailto:[EMAIL PROTECTED]


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms API

2007-09-24 Thread Tristan Rivoallan

hi,

On 9/22/07, Jack Bates <[EMAIL PROTECTED]> wrote:

> Is there anything like the Drupal Forms API for symfony? For
> programmatically writing standards accessible forms? Thanks, Jack

this may help : http://trac.symfony-project.com/trac/wiki/sfFormBuilderPlugin

++
tristan

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---



[symfony-users] Re: Forms with pictures

2007-09-06 Thread Francois Zaninotto
Hi,

You might give a look to Flash, which allows for multiple file uploads,
progression bar, and more.

http://robrosenbaum.com/flash/using-flash-upload-with-php-symfony/

http://www.masrizal.com/product/custom%20tag/cf_flashmultiupload/docs%20&%20examples/example.cfm


François

2007/9/5, Cacho <[EMAIL PROTECTED]>:
>
>
> Hi
>
> I'm developing my site with symfony and everything is working well and
> I'm learning faster. I did a lot of forms to allow clients input data
> without problems but I've now some doubts.
>
> I need to make a form where the user will input some data and where I
> should allow the user to upload pictures related with that data. As
> I'm a middleware software developer and I'm not sure which is the
> recommended way to that having in mind usability.
>
> My first idea is the easy way for me: first let the user input data
> and when data is inside the system, let it to upload pictures. In that
> way I avoid to have some lost pictures. Nevertheless, this kind of
> data input in two steps could be not user friendly.
>
> I'm not sure of my "b plan". Should I use ajax ? Flex ?
>
> So, I wonder if somebody accostumed to web development could give some
> tips about this matter.
>
> Thanks in advance
>
> C
>
>
> >
>
>

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
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
-~--~~~~--~~--~--~---