[symfony-users] Is it possible to programmatically login to Symfony2?

2011-03-07 Thread Brandon
I'm loving Symfony2, but I'm a newbie. I have a form-login security function that is working great. But when a new user registers they are sent an email confirmation link, and it would be a little wonky to send them to the login page after registering. How do I log them in after they click the con

[symfony-users] Where to configure Doctrine2 event subscribers in Symfony2

2010-06-25 Thread Brandon Turner
Is this done in an Application kernel method? I'm trying to learn about Doctrine Extensions. I know I can register a subscriber in my Controller, but that seems like the wrong place. Any ideas? Thanks, Brandon -- If you want to report a vulnerability issue on symfony, please send it

[symfony-users] Symfony2: Best way to test a 404 response?

2010-07-15 Thread Brandon Turner
e the error_log function when running tests using PHPUnit. So is this a Symfony2 bug, a PHPUnit bug, a misconfiguration on my end, or a misunderstanding on my end? I'd appreciate any pointers you can provide! Brandon -- If you want to report a vulnerability issue on symfony, please se

Re: [symfony-users] Symfony2 - routing with subdomains

2010-07-22 Thread Brandon Turner
On 7/22/10 7:39 AM, gordonslondon wrote: I just see that symfony2 router doesn't use the host part of the uri. exemple, both will be routed the same : www.mysite.com/myaction blog.mysite.com/myaction is this possible actually to route subdomains in Sf2 ? if no is there a solution now ? T

[symfony-users] Symfony2: Doctrine Configuration - Yaml Imports

2010-07-27 Thread Brandon Turner
the use case for the imports functionality? The Dependency Injection documentation seems to imply, but doesn't explicitly state, that definitions from the imported file will cascade if not defined in the current file. Thanks for your help! Brandon -- If you want to report a vulnerab

Re: [symfony-users] Symfony2: Doctrine Configuration - Yaml Imports

2010-07-28 Thread Brandon Turner
On 7/28/10 1:25 AM, Fabien Potencier wrote: On 7/28/10 5:58 AM, Brandon Turner wrote: All, I have two config files for my production and development Symfony2 environments: #config.yml doctrine.orm: auto_generate_proxy_classes: false metadata_cache_driver: apc result_cache_driver: apc

[symfony-users] Symfony2: Best way to override format in a view

2010-07-30 Thread Brandon Turner
I've been experimenting with using Symfony2 for a simple rest API. The rest API is available in multiple formats (xml, json). Which format is delivered is controlled by the _format parameter. Most API calls return simple arrays (encoded in json or xml) so thus far I've skipped Symfony2's vie

[symfony-users] Dependency Injection in Symfony2

2010-08-11 Thread Brandon Turner
(xml, php, ini, etc) I guess I'm wondering if it is possible to avoid step 3a and if so how? Thanks, Brandon -- 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

Re: [symfony-users] Dependency Injection in Symfony2

2010-08-11 Thread Brandon Turner
On 08/12/2010 01:25 AM, Fabien Potencier wrote: On 8/12/10 12:24 AM, Brandon Turner wrote: Is there anyway to load the default configuration for a bundle *without* a line such as: #config.yml: mybundle.config: ~ Yes, it is possible but I don't recommend it. I think it's better t

Re: [symfony-users] [Symfony2] Problems creating sqlite database

2010-08-12 Thread Brandon Turner
On 8/12/10 3:00 AM, alfonso wrote: I'm trying to create an sqlite database for a pilot proyect: # file: symad/config/config_test.yml ... doctrine.dbal: driver: PDOSqlite dbname: %kernel.root_dir%/sf2cmf-test -- Try something like this: doctrine.dbal: driv

Re: [symfony-users] Re: Doctrine2 & symfony 1.4

2010-08-31 Thread Brandon Turner
e2Plugin repo is not "official" by any means. It does mirror the subversion repository daily. The official repository is in subversion. Brandon -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because yo

[symfony-users] CSS Content-Type

2010-11-30 Thread Brandon Nason
I'm serving up dynamically generated CSS through symfony2 and the Content-Type that chrome/firefox is receiving is "t". I've set the _filter for my route to css and there is a corresponding entry in the symfony HttpFoundation\File class. In my mainAction method of my CSSController I have the follo

[symfony-users] Re: New Forms: Dynamic Default Value

2008-12-15 Thread Brandon Olivares
Hi, Check the setDefault method of the form. You can set it from within an action. Brandon -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of juro Sent: Monday, December 15, 2008 12:56 AM To: symfony users Subject: [symfony

[symfony-users] Re: Symfony on shared hosting: a security reminder

2008-12-15 Thread Brandon Olivares
Tom, That's quite interesting. Are you recommending a VPS solution if one can't afford a dedicated server? Are there any VPS hosts you recommend? Thanks, Brandon -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of T

[symfony-users] Jobeet tutorial for Doctrine

2008-12-15 Thread Brandon Olivares
doing the Propel version now. I'm really trying to learn about using Doctrine, so it is really useful. Thanks, Brandon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to

[symfony-users] Re: Jobeet tutorial for Doctrine

2008-12-15 Thread Brandon Olivares
John, Great, thanks! I was just making sure it'd be continued. I'm glad it will be. Thanks, Brandon From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Jonathan Wage Sent: Monday, December 15, 2008 6:45 PM To: symfony-users@google

[symfony-users] Re: Use sfUser attribute in view.yml

2008-12-16 Thread Brandon Olivares
Hi, Why not just set the title in the action? Seems a bit cleaner if you want a dynamic title. I try to keep PHP out of the YAML files as much as possible. Brandon -Original Message- From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of François

[symfony-users] sfPhpDocPlugin

2008-12-30 Thread Brandon Olivares
ine, so it was failing since Propel is disabled, so I changed it to extend sfTaskBase. Just thought I'd mention this in case anyone else tries to use it. Brandon --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: Best way to do conditional form validation

2009-01-02 Thread Brandon Olivares
that validator as an example: http://pastebin.com/mf4b40ef I hope that helps. Brandon > -Original Message- > From: symfony-users@googlegroups.com [mailto:symfony- > us...@googlegroups.com] On Behalf Of Ruben > Sent: Friday, January 02, 2009 11:25 AM > To: symfony-users@g

[symfony-users] Re: Symfony on shared host

2009-01-05 Thread Brandon Olivares
obably wouldn't have a problem. There was a discussion here a while ago about the risks of running symfony on a shared host. I think I agree with that. But if that's your only option, definitely have a host that offers shell access. Thanks, Brandon > -Original Messag

[symfony-users] Re: Symfony on shared host

2009-01-05 Thread Brandon Olivares
root. You can't do either of those on a shared host without shell. Brandon > -Original Message- > From: symfony-users@googlegroups.com [mailto:symfony- > us...@googlegroups.com] On Behalf Of Ward Loockx > Sent: Monday, January 05, 2009 3:02 PM > To: symfony-users@google

[symfony-users] Doctrine data-load out of memory (Ticket #7733)

2010-01-31 Thread Brandon Turner
suggestion for a fix? Thanks, Brandon -- 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...@g

Re: [symfony-users] Memory Leak using Doctrine in Tasks?

2010-02-02 Thread Brandon Turner
Perhaps we should post on symfony_devs. I've been experiencing out of memory issues when loading a large amount of fixtures via doctrine:data-load - which appears to be due to this same issue. Brandon On 02/02/2010 11:03 AM, Tony Piper wrote: > Hello. I've spent a good few hours tryi

Re: [symfony-users] Re: Memory Leak using Doctrine in Tasks?

2010-02-02 Thread Brandon Turner
env for tasks is intended (even though it works)! I think the profiler is used to log SQL statements when you pass --trace to your task. I think. Brandon On 02/02/2010 05:51 PM, Tony Piper wrote: > Brandon, you're a star! Creating a new environment and disabling the > profiler solv

Re: [symfony-users] Re: Doctrine data-load out of memory (Ticket #7733)

2010-02-02 Thread Brandon Turner
Ah, I didn't realize the ticket had been closed. I wish there was a way to monitor a ticket so I get emails when something happens to it. On 02/02/2010 06:00 PM, Tony Piper wrote: > > On Jan 31, 5:43 pm, Brandon Turner wrote: > >> Hello all, >> >> I've b

[symfony-users] Best Way to Redirect Old URLs

2010-02-04 Thread Brandon Turner
correct place 3) Create a custom route that would take the new URL as a parameter, so all redirects could be stored in routing.yml. Anyone have any thoughts or a better way to do this? Brandon -- You received this message because you are subscribed to the Google Groups "symfony users" gro

[symfony-users] Lime 2 Suggestion

2010-02-25 Thread Brandon Turner
Bernhard (or anyone else), I have been playing around with Lime 2 Alpha and loving it, especially the expected exception stuff. May I make one suggestion (so far). Would it be possible to pass a custom message to the LimeTest->verify() method? This would make it behave more like other test

[symfony-users] Propel: Change generated classname

2010-03-17 Thread Brandon Turner
I'm using Propel in Symfony 1.3.3. If I have a database table named 'myDatabaseTable' and would like the propel generated classname to be "MyDatabaseTable", does anyone know how I can do this? Currently, propel generates "Mydatabasetable" for the classname. I have tried using the phpName table a

[symfony-users] dwCryptPlugin missing?

2008-03-05 Thread Brandon D. Valentine
Can anyone advise as to what's going on with this plugin? There seems to be something strange going on in general with the symfony PEAR channel: % pear list-all -c symfony All packages [Channel symfony]: === Package Latest Local symfony/pake1.1.4

[symfony-users] Re: dwCryptPlugin missing?

2008-03-05 Thread Brandon D. Valentine
On Mar 5, 4:18 pm, "Brandon D. Valentine" <[EMAIL PROTECTED]> wrote: > I am trying to use the dwCryptPlugin but I cannot seem to get it to > install. After tracking it down in svn it seems that the package.xml file for this package refers to symfony-project.org in many