Re: [symfony-users] Create dynamic folder and save files in it.

2011-02-25 Thread Gareth McCumskey
Create the directory in the uploads folder using the mkdir function (http://php.net/manual/en/function.mkdir.php) and then store the uploaded file in there. On 24/02/2011 16:27, Kiran wrote: Hello friends I want to create dynamic folder with specific name and file must save in that folder.

Re: [symfony-users] [Symfony 2] How to route with default :action :module style found in Symfony 1?

2011-02-25 Thread stof
On Thu, 24 Feb 2011 22:19:13 -0800 (PST), Theo Chakkapark ranma...@gmail.com wrote: How would I replicate in Symfony 2, what Symfony 1 provided in default routing? default: url: /:module/:action/* I know that with the way Symfony 2 works, I would have to specify the 'default' bundle to

[symfony-users] Re: Social network with symfony ?

2011-02-25 Thread metadan
Is there any development still occurring on this plugin. It looks like its fairly stagnant? On Feb 17, 2:29 pm, Massimiliano Arione garak...@gmail.com wrote: On Wednesday, February 16, 2011 5:59:13 PM UTC+1, coolmec33 wrote: I want to know the feasibility of a social network (profiles,

Re: [symfony-users] Create dynamic folder and save files in it.

2011-02-25 Thread Alex Pilon
If you are using symfony's file upload form widgets and validators you might want to checkout the generateXXXFilename method as well as look at creating a subclass of sfValidatedFile to control where you save the file. On Fri, Feb 25, 2011 at 09:34, Massimiliano Arione garak...@gmail.comwrote:

[symfony-users] How to set up a situation where a comments table is used for multiple entities

2011-02-25 Thread Alex Pilon
Hello Everyone, I have a schema in which I have several entities, lets call them Shows, Broadcasters and Pitches. A Show is essentially pitched to a Broadcaster which creates the Pitch which is an entity that sits between Show and Broadcaster and creates a many to many relationship. This is all

Re: [symfony-users] How to set up a situation where a comments table is used for multiple entities

2011-02-25 Thread Michał Piotrowski
Hi, 2011/2/25 Alex Pilon alex.pi...@gmail.com: Hello Everyone, I have a schema in which I have several entities, lets call them Shows, Broadcasters and Pitches. A Show is essentially pitched to a Broadcaster which creates the Pitch which is an entity that sits between Show and Broadcaster

[symfony-users] [Symfony 2] Embedding Controller to Template

2011-02-25 Thread Jan Eichhorn
Hi, i've read the Documentation about Templating with Twig. In the Section: Embedding Controllers is mentioned that controllers could be used with the include tag. But this dosen't work so far. I try this: {% include 'PageBundle:Meta:mainNavigation' %} inside the Template. in this bundle

Re: [symfony-users] [Symfony 2] Embedding Controller to Template

2011-02-25 Thread Jan Eichhorn
Wow! Thank you for this fast response! It works fine now! -- 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

[symfony-users] [Symfony2][PR6] doctrine:data:load bug

2011-02-25 Thread Nikita Korotaev
Hi, I've found a bug when using a *doctrine:data:load.* My data is in folder MyBundle/DataFixtures/ORM/ I'm using SVN, and it creates hidden files in every folder of the project. So when I run Load command, it seems to me that it is trying to load hidden files and fail as the result. When I

Re: [symfony-users] [Symfony2][PR6] doctrine:data:load bug

2011-02-25 Thread stof
On Fri, 25 Feb 2011 09:47:59 -0800 (PST), Nikita Korotaev websir...@gmail.com wrote: Hi, I've found a bug when using a *doctrine:data:load.* My data is in folder MyBundle/DataFixtures/ORM/ I'm using SVN, and it creates hidden files in every folder of the project. So when I run Load

[symfony-users] tiny pic install

2011-02-25 Thread Laxmi
Hello I would like to install tiny pic on my symfony framework. I read some documentation and it says i need to install sfguard plugin. I am not using sfguard plugin. How can I install tiny pic. Thanks in advance -- If you want to report a vulnerability issue on symfony, please send it to

[symfony-users] [Symfony2] Responding with a template at core.exception

2011-02-25 Thread Alexander Kachkaev
Hi everyone! My question is regarding generating responces at core.exception event. I would like to make my own global custom exceptoin handler. I have implemented a listener which looks like this: class MyListener { public function notifyUntill(EventInterface $event) { $exception =

Re: [symfony-users] [Symfony2] Responding with a template at core.exception

2011-02-25 Thread Christophe COEVOET
Le 25/02/2011 22:07, Alexander Kachkaev a écrit : Hi everyone! My question is regarding generating responces at core.exception event. I would like to make my own global custom exceptoin handler. I have implemented a listener which looks like this: class MyListener { public function

[symfony-users] [Symfony2]

2011-02-25 Thread Alex Pilon
Hey, I cloned symfony2 sandbox from git and set up a virtual host pointing to the web directory. It pretty well worked out of the box except: http://symfony2.local/app_dev.php Gives me an error that says URL is not valid (it does not start with a /). However

[symfony-users] [Symfony 2] Adding custom labels to form fields

2011-02-25 Thread Jan Eichhorn
Hi, how i could add a label to an form field? I'am sitting here for a couple of hours trying to find out how to do this but i must capitulate. $this-add(new TextField('title', array( 'max_length' = 64, ))); I want to add a label to this field sth. like this:

Re: [symfony-users] [Symfony2] - Dynamic Subforms

2011-02-25 Thread jdewit
Thanks for the tip. Several classes used in that plugin have changed in SF2. I'd love to update it but unfortunately am not at that level yet. I'll just hurry up and wait. Hopefully someone can implement this much needed feature in SF2 soon! -- If you want to report a vulnerability issue on

[symfony-users] Re: DIC: save var within my kernel listener, retrieve within Controller ?

2011-02-25 Thread matmar10
Never mind, we seemed to get it straightened out courtesy of a deep dive by my colleague. :-P On Feb 22, 5:54 pm, matmar10 matthew.ma...@gmail.com wrote: Hi All, First off I'll say I'm loving Symfony2!!! I am having a slight problem, however, updating to PR6. In our application we connect

[symfony-users] Re: [Symfony 2] Adding custom labels to form fields

2011-02-25 Thread jdewit
Those options are not available in the field class. Open Symfony\Component\Form\Field to see which ones are. Just customise the label in the view layer. form.twig.html label for=customerForm_titleTitle:/label {{ form_field(customerForm.title, { 'class': 'capitalize', 'maxlength': '2' }) }}

Re: [symfony-users] [Symfony2]

2011-02-25 Thread Fabien Potencier
On 2/25/11 11:39 PM, Alex Pilon wrote: Hey, I cloned symfony2 sandbox from git and set up a virtual host pointing to the web directory. It pretty well worked out of the box except: http://symfony2.local/app_dev.php Gives me an error that says URL is not valid (it does not start with a /).