Re: [symfony-users] [symfony 1.4] Retrieving Value from FormField

2011-03-04 Thread Sebastien Armand [Pink]
You have $form->getValue('fieldname') will give you the value for a certain field. $values = $form->getValues() will dump an array of all the form values with the field name as the array key. On Fri, Mar 4, 2011 at 4:30 AM, Alex Pilon wrote: > The way you described is using the arrayaccess inter

[symfony-users] [Symfony2] SecurityBundle - FailureHandler service

2011-03-04 Thread Francis Besset
Hi all, I created my failure_handler service for the form-login. But I would like to have access to the form-login configuration (login_path by example) in the instance of my failure_handler service. What should I do? Thanks, Francis. -- If you want to report a vulnerability issue on symfony, p

Re: [symfony-users] Functional Test (Mailer) Problem with Quoted-Printable Line Breaks (sf 1.4)

2011-03-04 Thread Matt Gibson
On 4 Mar 2011, at 21:36, I wrote: > with('mailer')->begin()-> >checkBody('/A new Sentence has been submitted at uniquesentence.com/')-> > > But this test fails, as the body doesn't match. If I add a debug(), my dumped > mail (the text/plain part) looks like this: I've done some more inves

[symfony-users] Re: Table meta-data in Symfony

2011-03-04 Thread David Clark
To flesh this out more -- we have the following schema: Instrument: columns: name: { type: string(255), notnull: true, unique: true } description: clob Question: columns: instrument_id: { type: integer, notnull: true } item_number: { type: integer, notnull

[symfony-users] [Symfony2] Optional services - Controller separation

2011-03-04 Thread John Wards
Okay I've began setting up my Controllers as a service so I can inject services into the constructor rather than relying on ContainerAware and getting services from that. I prefer this method. Class type restriction in the constructor, making good informed decisions about services you are going

[symfony-users] Functional Test (Mailer) Problem with Quoted-Printable Line Breaks (sf 1.4)

2011-03-04 Thread Matt Gibson
Hi all, I'm trying to write a functional test using the 'mailer' tester. I'm having problems with the checkBody() method, which seems to be caused by soft line-breaks in the mail. My code: ... with('mailer')->begin()-> ... checkBody('/A new Sentence has been submitted at uniquesent

Re: [symfony-users] Re: Integration of "external" PHP code in Symfony

2011-03-04 Thread oscar balladares
Yes. though I never tried to use pseudo functions sets of a php file, like the old days, when you put some functions on a file and then reference it via "include". But OOP is a lot better, so I will always use Classes. Saludos. 2011/3/4 Alex Pilon > That's the idea yes.. if you have myServiceO

Re: [symfony-users] Re: Integration of "external" PHP code in Symfony

2011-03-04 Thread Alex Pilon
That's the idea yes.. if you have myServiceObject.class.php wrote: > Thanks Oscar, > > Meaning then that 3rd party call, as long as it's organized into > classes, should be easy to integrate... right? > > Saludos! > > Pablo > > > On Mar 3, 2:35 am, oscar balladares wrote: > > Symfony handle it

[symfony-users] Re: Integration of "external" PHP code in Symfony

2011-03-04 Thread pbertu
Thanks Oscar, Meaning then that 3rd party call, as long as it's organized into classes, should be easy to integrate... right? Saludos! Pablo On Mar 3, 2:35 am, oscar balladares wrote: > Symfony handle it very well. > > If you have third party code, you should put it in yourProjectName/lib > d

[symfony-users] Re: User Authentication

2011-03-04 Thread Roger Webb
First of all, lose the controller argument on your security check route. There is no "checkAction" needed. Symfony handles checking the password and forwarding to the appropriate route. If you're using form authentication you need a textfield named "_username" and one named "_password". The "act

[symfony-users] Re: Symfony2: Register service

2011-03-04 Thread Venzon
Did to try to read service container documentation? http://docs.symfony-reloaded.org/master/book/service_container.html Many examples of using service container can be found in core sf2 libs. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proje

Re: [symfony-users] [Symfony 2] How to inject a Service into a Form

2011-03-04 Thread Jan Eichhorn
Do you mean a new FormContext? -- 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@googleg

[symfony-users] Re: Console Command and array of arguments

2011-03-04 Thread Deg Valentine
The bug was fixed as of commit 0306c9aa66955671d530f6ed917a34af6326fcc5. Update your library and try again. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-proj

Re: [symfony-users] Re: How to get the realtionship column in sfDatagrid

2011-03-04 Thread Alex Pilon
Why don't you apply to be a developer of that plugin and contribute your changes? On Fri, Mar 4, 2011 at 00:30, Emerson Barrion wrote: > Thanks Leon!.. > > But upon checking the sfGridPlugin, its in alpha state at the moment [?] > > My temporary solution to my problem is modifying the core of > s

[symfony-users] Re: User Authentication

2011-03-04 Thread Donald
Here's some more info on what I'm trying to accomplish: #UserBundle/Resources/config/routing.yml _security_login: pattern: /login defaults: { _controller: UserBundle:Security:login } _security_check: pattern: /login_check defaults: { _controller: UserBundle:Security:check } #UserBundle

Re: [symfony-users] Transitive Persistence

2011-03-04 Thread Jonathan Wage
Hi, Yes. It cascades to all references automatically in Doctrine1. In Doctrine2 each reference must have cascading specifically enabled. This is for performance reasons that it is off by default. - Jon On Mon, Feb 28, 2011 at 4:59 PM, keymaster wrote: > I've searched the Symfony/Doctrine docum

[symfony-users] Console Command and array of arguments

2011-03-04 Thread Edke
Hello there. I'm using Console Component and I'd love to use feature, where I can use argument as an array (multiple arguments, for example task command [dest1] ... [destN]. When trying to configure Command to array of arguments, after issuing ./task command folder1 folder2 I'm getting "too man

[symfony-users] Symfony2: Register service

2011-03-04 Thread Tarjei
Hi, I would like to use the DI framework to register a service with Symfony2 and need some hints. What I need pointers on is: 1. How do I register the service into DI in the symfony configuration? 2. How do I link the service to any configuration I want to put in the configuration file? I have t

[symfony-users] How to implement a DB cached Counter for related Objects

2011-03-04 Thread romankallweit
I am stuck with implementing some criteria-based counters on a relation. For a plain related object counter, i found the "CountCache" example in the "more with symfony" book. http://www.symfony-project.org/more-with-symfony/1_4/en/08-Advanced-Doctrine-Usage I think this comes pretty close to what

Re: [symfony-users] Re: mysql_real_escape_string

2011-03-04 Thread Gareth McCumskey
You do not need to use mysql_real_escape_string if you are using symfony properly. It does this automatically for you. Try reading peoples responses properly and perhaps consider doing one of the symfony tutorials to learn symfony as well. On 04/03/2011 04:09, Laxmi wrote: hello Thanks for r

[symfony-users] Re: Transitive Persistence

2011-03-04 Thread keymaster
gentle bump... On Feb 28, 5:59 pm, keymaster wrote: > I've searched the Symfony/Doctrine documentation, as well as this > forum and Google, but was unable to find an answer. > > The Symfony manual says: "The ORM is smart enough to detect > relationships between objects, so saving the $article obj