[symfony-users] [Symfony2] Log: use Mail as log Writer with the filter on priority

2011-02-10 Thread liuggio
Hello all, I'm trying to understand how to configure config.yml(or xml) for receive an email when the log priority is over the threshold.. I should add a Writer to the service zend.logger with a particular value for the filter. Following the documentation

Re: [symfony-users] Re: Long Polling

2011-02-10 Thread Alberto Gragera
Hey, If your web app is going to have some pretty serious usage you might consider get rid of apache (for the long polling part specifically) and take a look to nginx+http_push_module :-) On 09/02/2011, at 22:32, Gareth McCumskey gmccums...@gmail.com wrote: I figured it was something server

[symfony-users] [Symfony2] - @HasLifecycleCallbacks

2011-02-10 Thread jdewit
I can't get @PrePersist to work. Here's my entity namespace Sensio\HelloBundle\Entity; /** * @orm:Entity(repositoryClass=Sensio\HelloBundle\Entity\Repository\CustomerRepository) */ class Customer { /** * @orm:id * @orm:Column(type=integer) * @orm:GeneratedValue(strategy=AUTO) *

Re: [symfony-users] [Symfony2] - @HasLifecycleCallbacks

2011-02-10 Thread stof
On Wed, 9 Feb 2011 23:25:44 -0800 (PST), jdewit jorisdewitblackbe...@gmail.com wrote: I can't get @PrePersist to work. Also, how come I have to set nullable=true for each field to prevent the error? I've used Doctrine2 before and never had to. Is there a better way? As for all other

[symfony-users] Re: How to let the user choose the upload directory ?

2011-02-10 Thread Manu
I got it to work with the following code : public function executeAdd(sfWebRequest $request) { $this-form = new ImageForm(); if ($request-isMethod('post')) { $this-form-bind( $request-getParameter($this-form-getName()),

Re: [symfony-users] [Symfony2] - @HasLifecycleCallbacks

2011-02-10 Thread jdewit
Works. 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 symfony-users@googlegroups.com To

[symfony-users] How to check if a file exist before uploading it ?

2011-02-10 Thread Manu
I use a custom validator to keep the filename during the upload : class mySfValidatorFile extends sfValidatorFile { protected function configure($options = array(), $messages = array()) { parent::configure(); $this-addOption('validated_file_class', 'mysfValidatedFile');

Re: [symfony-users] How to check if a file exist before uploading it ?

2011-02-10 Thread Gareth McCumskey
http://www.google.co.za/search?sourceid=chromeie=UTF-8q=php+file+exists http://www.google.co.za/search?sourceid=chromeie=UTF-8q=php+file+existsGoogle is your friend. On Thu, Feb 10, 2011 at 12:35 PM, Manu emmanuel.parf...@gmail.com wrote: I use a custom validator to keep the filename during

[symfony-users] Re: How to check if a file exist before uploading it ?

2011-02-10 Thread Manu
I know about file exists (!), but in my form the users chose the folder they upload to, so I don't have that info in my validator ... -- 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

[symfony-users] Re: How to check if a file exist before uploading it ?

2011-02-10 Thread Manu
Nevermind I'll do it in the action before -save() -- 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] Re: Problem setting up authentication in symfony2

2011-02-10 Thread Justin Fortier
First make sure have the Bundle enabled in your AppKernel. So add this line: new Symfony\Bundle\SecurityBundle\SecurityBundle(), Then here's an example of my working config. The stuff that is commented out is what you're looking to implement. However I've set it up for multiple users with

Re: [symfony-users] Re: How to check if a file exist before uploading it ?

2011-02-10 Thread Gareth McCumskey
Thats the only place you can do it .. On Thu, Feb 10, 2011 at 1:18 PM, Manu emmanuel.parf...@gmail.com wrote: Nevermind I'll do it in the action before -save() -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received

[symfony-users] Re: Logging security events (syslog)

2011-02-10 Thread Leon van der Ree
I created my own SysLogger (together with some other changes, since I need to keep privacy in mind as well) and configured this in my factory.yml I posted the code at http://snippets.symfony-project.org/snippet/459 On 9 feb, 13:55, Manfred Dohmen manfred.doh...@gmail.com wrote: Hello, is

Re: [symfony-users] Problem setting up authentication in symfony2

2011-02-10 Thread stof
On Wed, 9 Feb 2011 20:26:29 -0800 (PST), Klaas Naaijkens klaas.naaijk...@gmail.com wrote: Hi, I am struggling with the security system in symfony2 for about a day now. I have this in my config_dev.yml (running with the latest version of symfony2 github) - security.config:

[symfony-users] Re: multiple problems with Symfony 1.4 installation - msg#00943

2011-02-10 Thread Ryan Walker
Thank you Christophe and Jochen. You pointed me down the right path and I want to share the solution. It turns out that my hosting environment uses suhosin hardened PHP which is likely the cause of the problem. Adding suhosin into my solution search, I found this in oldforums.symfony-project.org:

[symfony-users] Redirect with method POST

2011-02-10 Thread Thor
Hi all, i need to reach a payment service on another server and url than the application one, in post,not get. how can i achieve this from an action? i cannot find anything similar ... -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] [Symfony 2] Container access from entity repository

2011-02-10 Thread Venzon
Is it possible to gain access to container from entity repository or entity manager? I have several settings in config.yml (defining for example use of APC cache) which I want to use in entity repository methods. Because entity manager service is created using factory it is kinda hard to do

[symfony-users] Re: How to check if a file exist before uploading it ?

2011-02-10 Thread Manu
what's the point of that message ? -- 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

Re: [symfony-users] Re: How to check if a file exist before uploading it ?

2011-02-10 Thread Alex Pilon
postive affirmation. On Thu, Feb 10, 2011 at 12:34, Manu emmanuel.parf...@gmail.com wrote: what's the point of that message ? -- 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

[symfony-users] The helper javascripts is not defined

2011-02-10 Thread pzwosta
Hi, I'm using Symfony 2 sandbox PR6. In my layout.html.php I use: ?php $view['javascripts']-add( I know this worked in one of the previous sandboxes but now I get The helper javascripts is not defined. That's true, javascripts is not part of the helpers-collection. Is the javascripts

[symfony-users] Re: The helper javascripts is not defined

2011-02-10 Thread Justin Fortier
Yeah this is kind of a mess. It's been taken out because it did not work as intended. Originally I was using https://github.com/Adenclassifieds/AssetOptimizerBundle as a substitute that Fabien was recommending. Apparently recently they've abandoned the project as they say: Warning This Bundle is

[symfony-users] Re: The helper javascripts is not defined

2011-02-10 Thread pzwosta
Many thanks with $view['assets']-getUrl(... I got it to work. regards Peter On 10 Feb., 21:32, Justin Fortier justfort...@gmail.com wrote: Yeah this is kind of a mess. It's been taken out because it did not work as intended. Originally I was

Re: [symfony-users] Auto-filling caches

2011-02-10 Thread Benoit Montuelle
Hi, I would make it using a task which uses sfBrowser on the ajax urls, eventually using DB queries to generate them. If you use html cache it should do the job. The only thing is to run the task with the good env argument so it generates cache for 'prod'. Now if you use sfViewCacheManager, it