Thank you for your answer. I am sorry for my broken English. Let me try explain again.
In my form i call form like this : <?php echo $form ?> In this situation, it brings "Current Photos" and "Upload More Photos". Both of them. Is there any easy way, if it is a new form, to remove "Current Photos" ? That was my questions. If i call all form elements one by one, i can remove it. But how can i remove "Current Photos" when i call form <?php echo $form ?> ? Of course, i know i can limit with 2 like this. $form = new ProductPhotoCollectionForm(null, array( 'product' => $this->getObject(), 'size' => 2, )); In this situation, user will able to add 2 photos when user calls form right? There is no limit. I means if user edits the form 10 times, user can upload 20 photos right? What i try to to is, i want to limit all photos. Even user edits form 100 times, i want to limit user upload photos with 10 photos. I hope you understood me. How can i solve this problems? Thank you. P.S. I can limit if i call every form element by one by. But i wonder if i can do it when i call form this was : <?php echo $form ?> ? Thank you. --- 22/11/10 Pzt tarihinde guiguiboy <[email protected]> şöyle yazıyor: Kimden: guiguiboy <[email protected]> Konu: [symfony-users] Re: 06-Advanced-Forms Some Questions. Kime: "symfony users" <[email protected]> Tarihi: 22 Kasım 2010 Pazartesi, 1:10 Hi, 1/ What do you mean with "Advertisement" ? 2/ If you want to change the labels of the form, simply use the setLabel() method in yout form class. Example : $this->widgetSchema->setLabel(%NAME%, %LABEL%); 3/ Well, I believe the tutorial is enough well coded to allow you change the number of pictures you wish to upload. Just change the value of size in the option array. $form = new ProductPhotoCollectionForm(null, array( 'product' => $this->getObject(), 'size' => 2, )); Guillaume B. On 21 nov, 13:54, Guychmyrat Amanmyradov <[email protected]> wrote: > Hi, > Firstly thanks for advanced forms. It really saved my times. > > I was following this link : > > http://www.symfony-project.org/more-with-symfony/1_4/en/06-Advanced-F... > > 1) I do not want to show "Advertisement" text (in tutorial current photos) on > new form. How can i hide it ? > > 2) How can i change "advertisement" and "newphoto" texts (labels) ? > > 3) How can i limit easily photos with 6. If user has uploaded 6 photos, i > want to stop image upload. > > Thank you. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
