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" gr
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 th
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
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 val
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 f
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
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 val
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
Group
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()
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
> 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 t
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 d
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.
J
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 ($
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 do
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 i
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/for
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 con
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:
>
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 i
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.o
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 M
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 ema
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 emb
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 gene
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).
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
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
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 al
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
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
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
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.
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 j
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
selectin
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,
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 c
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 -
>
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.
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 th
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 t
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 te
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
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 Sy
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.sym
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
--~--~-~--~
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 <
47 matches
Mail list logo