[symfony-users] Re: sfWidgetFormJQueryDate option format is no longer supported in version 1.1.1?
Tom, I fixed the layout issue. Thanks for reporting it. Massimiliano On 5 Gen, 19:38, Tom Ptacnik to...@tomor.cz wrote: I wanted to add a link to a printscreen to imageshack (with your datepicker in Opera), but when I add a link into this reply window it show me an error that I can't post it... On 5 led, 19:23, Tom Ptacnik to...@tomor.cz wrote: Hello Axel, I like your solution, but in Opera (v. 10.10) it has broken layout little bit ... -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8
There is also a video tutorial at http://netbeans.org/kb/docs/php/symfony-screencast.html Regards, Christopher. P.S. I still can't believe there are so many of you NOT working with a decent IDE like Eclipse or Netbeans. FractalizeR schrieb: NetBeans 6.8 has built-in Symfony support. I have composed small blog- post about setting up symfony project in NetBeans: http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly-ide-netbeans-6-8/ I consider now NetBeans as a replacement for Zend Studio ;) -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8
Personally I use Eclipse and struggle to do without the features this IDE gives me. Never used Netbeans but may give it a go, because I like the idea of having symfony support builtin - Original Message - From: Christopher Schnell ty...@mda.ch To: symfony-users@googlegroups.com Sent: Thursday, January 7, 2010 10:44:13 AM GMT +02:00 Harare / Pretoria Subject: Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8 There is also a video tutorial at http://netbeans.org/kb/docs/php/symfony-screencast.html Regards, Christopher. P.S. I still can't believe there are so many of you NOT working with a decent IDE like Eclipse or Netbeans. FractalizeR schrieb: NetBeans 6.8 has built-in Symfony support. I have composed small blog- post about setting up symfony project in NetBeans: http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly-ide-netbeans-6-8/ I consider now NetBeans as a replacement for Zend Studio ;) -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] File size validation?
Hi, I am trying to implement file size validation for an upload field on a form. For security / performance the php.ini post_max_size config setting is set to 8 mb. Now I want to limit the file size upload to about 1 mb. I am using the built in sfValidatorFile: $this-setValidator(file, new sfValidatorFile(array('max_size' = 100, 'mime_types' = array('text/plain'),'required'=false))); This works ok if the user uploads a 2 mb file, but if the post_max_size is exceeded by the user trying to upload a file of say 10mb, a 500 error page is produced! This is not very friendly and it makes it look like the page is broken, when actually it is a simple validation error. A way to request the browser to limit the file size would be acceptable, and the 500 page would be reserved for bad requests But sadly after a quick google it doesn't look like that is possible. How should this problem be dealt with? Thanks -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8
I use Eclipse, too, but would like to use Netbeans. I can't because since updateing to Fedora 12, it freezes radomly and crashes my entire system. And I can't use another Distribution because Fedora is the only, I know of that supports my 2 monitors. Netbeans has better code-completion with static functions which is great when using Propel. Regards, Christopher. Gareth McCumskey schrieb: Personally I use Eclipse and struggle to do without the features this IDE gives me. Never used Netbeans but may give it a go, because I like the idea of having symfony support builtin - Original Message - From: Christopher Schnell ty...@mda.ch To: symfony-users@googlegroups.com Sent: Thursday, January 7, 2010 10:44:13 AM GMT +02:00 Harare / Pretoria Subject: Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8 There is also a video tutorial at http://netbeans.org/kb/docs/php/symfony-screencast.html Regards, Christopher. P.S. I still can't believe there are so many of you NOT working with a decent IDE like Eclipse or Netbeans. FractalizeR schrieb: NetBeans 6.8 has built-in Symfony support. I have composed small blog- post about setting up symfony project in NetBeans: http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly-ide-netbeans-6-8/ I consider now NetBeans as a replacement for Zend Studio ;) -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Custom 500 error page
Hi, Is it possible to define a custom 500 error page for a specific action? Thanks -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8
ohh this netbeans is cool ... i might go for it as well Alecs On Thu, Jan 7, 2010 at 12:55 PM, Christopher Schnell ty...@mda.ch wrote: I use Eclipse, too, but would like to use Netbeans. I can't because since updateing to Fedora 12, it freezes radomly and crashes my entire system. And I can't use another Distribution because Fedora is the only, I know of that supports my 2 monitors. Netbeans has better code-completion with static functions which is great when using Propel. Regards, Christopher. Gareth McCumskey schrieb: Personally I use Eclipse and struggle to do without the features this IDE gives me. Never used Netbeans but may give it a go, because I like the idea of having symfony support builtin - Original Message - From: Christopher Schnell ty...@mda.ch To: symfony-users@googlegroups.com Sent: Thursday, January 7, 2010 10:44:13 AM GMT +02:00 Harare / Pretoria Subject: Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8 There is also a video tutorial at http://netbeans.org/kb/docs/php/symfony-screencast.html Regards, Christopher. P.S. I still can't believe there are so many of you NOT working with a decent IDE like Eclipse or Netbeans. FractalizeR schrieb: NetBeans 6.8 has built-in Symfony support. I have composed small blog- post about setting up symfony project in NetBeans: http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly-ide-netbeans-6-8/ I consider now NetBeans as a replacement for Zend Studio ;) -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Problems getting test:coverage to work
You need to know if your apache is thread safe or not (if under windows I guess it is). I don't know if my Apache is thread safe, but I know that it works with my PHP, so it probably is because my PHP won't work with the NTS version of this extension (I tried and received an error that the compile didn't match.) So, I am using php_xdebug-2.1.0beta1-5.3-vc9 (which is not thread safe). but... Do a phpinfo(); or php /? on command line to know-how do a phpinfo() then check line for thread-safe enabled or similar thing. ... On the other hand, if I do php -i, the output states: Thread Safety = disabled ... So maybe I should be using the other one version? But then how can I get past the compiler mismatch problem? (Maybe I need to reinstall PHP? I had a similar problem when I was trying to get Oracle to work with PHP and eventually I was forced to give up since I didn't feel like figuring out how to compile everything for myself at the time.) If thread_safe, you'll need to suffix zend_extension with _ts, like zend_extension_ts=.. I got this error and it was because of this. I tried to change the line in my configuration to: zend_extension_ts=C:\devtool\php\modules\xdebug \php_xdebug-2.1.0beta1-5.3-vc9.dll However, when I did this, I get: Failed loading C:\devtool\php\modules\xdebug\php_xdebug-2.1.0beta1-5.3- vc9.dll You must install and enable xdebug before using lime coverage. ... which wasn't too surprising since Xdebug's documentation states: From PHP 5.3 onwards, you always need to use zend_extension and not zend_extension_ts. -Brian. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] sfWidgetFormDoctrineChoice
hello, i would like to change the widget: //$this-widgetSchema['type'] = new sfWidgetFormChoice(array ('choices' = Doctrine::getTable('JobeetJob')-getTypes(),'expanded' = true)); to have a combo box instead of radio buttons, so i use: $this-widgetSchema['type'] = new sfWidgetFormDoctrineChoice(array ('choices' = Doctrine::getTable('JobeetJob')-getTypes(), 'model' = )); but where can we find the list of 'model', in the class: http://www.symfony-project.org/api/1_4/sfWidgetFormDoctrineChoice thanks -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] sfWidgetFormDoctrineChoice
Don't change the widget at all, it's not needed! Just change 'expanded' = true to 'expanded' = false and you have your combo box. Cheers, Daniel On Jan 7, 2010, at 1:09 PM, l3ia-etu wrote: hello, i would like to change the widget: // $this-widgetSchema['type'] = new sfWidgetFormChoice(array ('choices' = Doctrine::getTable('JobeetJob')-getTypes(),'expanded' = true)); to have a combo box instead of radio buttons, so i use: $this-widgetSchema['type'] = new sfWidgetFormDoctrineChoice(array ('choices' = Doctrine::getTable('JobeetJob')-getTypes(), 'model' = )); but where can we find the list of 'model', in the class: http://www.symfony-project.org/api/1_4/sfWidgetFormDoctrineChoice thanks -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8
I converted to Netbeans 6.8 from the latest Eclipse version, personally I had problems with Eclipse unreliable code completion and high resource usage (both cpu and memory). Unfortunately not everything is perfect with Netbeans, I experienced also the high CPU usage lockup (i suspect it has something to do with code completion that fails and goes into an infinite loop). So if there are better IDE's than these I'm looking forward :) For anyone using Java based editors my suggestion is to use the Sun JRE (for both Eclipse and Netbeans) the one that comes bundled with a Linux distributions may not work as well. gabriel On Jan 7, 12:55 pm, Christopher Schnell ty...@mda.ch wrote: I use Eclipse, too, but would like to use Netbeans. I can't because since updateing to Fedora 12, it freezes radomly and crashes my entire system. And I can't use another Distribution because Fedora is the only, I know of that supports my 2 monitors. Netbeans has better code-completion with static functions which is great when using Propel. Regards, Christopher. Gareth McCumskey schrieb: Personally I use Eclipse and struggle to do without the features this IDE gives me. Never used Netbeans but may give it a go, because I like the idea of having symfony support builtin - Original Message - From: Christopher Schnell ty...@mda.ch To: symfony-users@googlegroups.com Sent: Thursday, January 7, 2010 10:44:13 AM GMT +02:00 Harare / Pretoria Subject: Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8 There is also a video tutorial at http://netbeans.org/kb/docs/php/symfony-screencast.html Regards, Christopher. P.S. I still can't believe there are so many of you NOT working with a decent IDE like Eclipse or Netbeans. FractalizeR schrieb: NetBeans 6.8 has built-in Symfony support. I have composed small blog- post about setting up symfony project in NetBeans: http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly... I consider now NetBeans as a replacement for Zend Studio ;) -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Get/Set - what is more 'correct' in symfony
Thanks Daniel for that tip: that's clear...I gather the __toString method is one symfony coders spend a bit of time overriding. Pete -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Custom 500 error page
yes you can custom 500 in apps/APPNAME/config/error/error.html.php Mark Smith wrote: Hi, Is it possible to define a custom 500 error page for a specific action? Thanks -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Helpers and Widgets??
Hello, Maybe someone could help me with this problem i'm having. Whats the difference between the form Helpers and the Widgets? Don't they do the same thing? If not, when should we use helpers instead of the widgets? Can someone please explain me better this doubt i have? PS: Another thing i don't know very well is how can we access for example a variable $var that is defined in the action that calls the form? Thanks guys! -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Helpers and Widgets??
Form helper are deprecated and are remainder of symfony 1.0. Form widgets are essentially all your database columns as object-oriented equivalents contained in your form classes. Cheers, Daniel On Jan 7, 2010, at 1:50 PM, wueb wrote: Hello, Maybe someone could help me with this problem i'm having. Whats the difference between the form Helpers and the Widgets? Don't they do the same thing? If not, when should we use helpers instead of the widgets? Can someone please explain me better this doubt i have? PS: Another thing i don't know very well is how can we access for example a variable $var that is defined in the action that calls the form? Thanks guys! -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Helpers and Widgets??
So should i just use for example the widget-render instead of a input_tag('column'), something like that? -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Helpers and Widgets??
So should i just use for example the widget-render instead of a input_tag('column') on the template, something like that? -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Helpers and Widgets??
Kind of. Just read the docs, there's plenty on how to do forms in symfony with the new form framework. echo $form['column']; is sufficient in your templates. Did you just start using symfony? Or did you start with symfony 1.0? Then I'd highly suggest going through Jobeet chapter after chapter, but especially this: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/10 Cheers, Daniel On Jan 7, 2010, at 2:01 PM, wueb wrote: So should i just use for example the widget-render instead of a input_tag('column'), something like that? -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Helpers and Widgets??
yes, it is exactly like you say : ?php echo $form['filed_name'] ? or ?php echo $form['filed_name']-renderLabel() ? ?php echo $form['filed_name']-renderError() ? ?php echo $form['filed_name']-render() ? You should read this : http://www.symfony-project.org/forms/1_2/en/ On 7 jan, 14:01, wueb webmaster@gmail.com wrote: So should i just use for example the widget-render instead of a input_tag('column'), something like that? -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Custom 500 error page
Yes but that error message will be used for every module and every action. I need to override this and use a specific 500 error page for a specific action. On Jan 7, 12:42 pm, chrisyue blizzch...@gmail.com wrote: yes you can custom 500 in apps/APPNAME/config/error/error.html.php Mark Smith wrote: Hi, Is it possible to define a custom 500 error page for a specific action? Thanks -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Where is the configuration in Symfony 1.3/1.4 for sf_upload_dir?
On Wed, 6 Jan 2010, Dennis wrote: I never saw that! Thanks. Where would you execute that so that it is done for all symonfy actions in all applications? http://www.symfony-project.org/book/1_2/19-Mastering-Symfony-s-Configuration-Files#chapter_19_sub_the_basic_file_structure -- -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] redirect method covert to amp;
On Wed, 6 Jan 2010, chrisyue wrote: in an action method if I use $this-redirect('a_route_name', array( 'a' = '1', 'b' = '2', 'c' = '3')); it will redirect to a url like /the_route?a=1amp;b=2amp;c=3, is it a bug? or I just use it wrong? Route names usually have a @ in front: http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System#chapter_09_sub_speeding_up_routing_by_using_the_rule_name -- -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Custom 500 error page
On Thu, 7 Jan 2010, Mark Smith wrote: Yes but that error message will be used for every module and every action. I need to override this and use a specific 500 error page for a specific action. Doesn't really make sense since the error could occur before symfony has loaded all the classes it needs to call the action. -- -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Helpers and Widgets??
When i try override the constructor (don't know what is the correct, if public function construct() or public function CrmEmpresasForm (), but i try both) it send me an error: Fatal error: Call to a member function getStylesheets() on a non- object in D:\wamp\www\dev\sfprojects\project\lib\vendor\symfony\lib \form\sfForm.class.php on line 723 You know what can be? -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: symfony 1.4 installation
I suggest you install symfony embeded in the project, that way each project will be version independant. On 6 ene, 04:41, karansoni kanu8...@gmail.com wrote: i am using Ubuntu Linux 9.10 and i have installed symfony1.2.9 on it through pear . is there any phenomenon through which i can install the both versions symfony 1.2.9 and 1.4 on my linux though PEAR don't support two instalations then Do i have to install 1.4 through SVN??? I want to keep both versions on my PC with regards, karan soni -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Helpers and Widgets??
Hey there! class ...Form extends Base...Form { protected $user_id; public function __construct($user_id, $object = null, $options = array(), $CSRFSecret = null) { $this-user_id = $user_id; parent::__construct(object, $options, $CSRFSecret); } public function configure() { // this method should already be available // here you can use $this-user_id; } } Cheers, Daniel PS: If you don't know that as of PHP5 the constructor is __construct() you should look at general OOP in PHP5 before turning to symfony! On Jan 7, 2010, at 4:05 PM, wueb wrote: When i try override the constructor (don't know what is the correct, if public function construct() or public function CrmEmpresasForm (), but i try both) it send me an error: Fatal error: Call to a member function getStylesheets() on a non- object in D:\wamp\www\dev\sfprojects\project\lib\vendor\symfony\lib \form\sfForm.class.php on line 723 You know what can be? -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Problem with test:functional
I'm a newbie still working through the Jobeet tutorial. When I try to execute either symfony.bat test:functional frontend jobActions or symfony.bat test:functional frontend categoryActions I get the following feedback: Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in C: \devtool\Zend\ZendServer\lib\vendor\symfony\lib\test \sfTestFunctionalBase.class.php on line 433 Fatal error: Call to a member function info() on a non-object in C: \devtool\Zend\ZendServer\lib\vendor\symfony\lib\test \sfTestFunctionalBase.class.php on line 346 And then the tests fail to execute. (My code is essentially the same as provided in the tutorial, except that (for reasons I can't explain), the PHP parser didn't like a ; after a particular end() statement, so I refactored the code such that taking advantage of the fluent interface it was no longer needed.) -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Custom 500 error page
On Jan 7, 2:05 pm, Eno symb...@gmail.com wrote: On Thu, 7 Jan 2010, Mark Smith wrote: Yes but that error message will be used for every module and every action. I need to override this and use a specific 500 error page for a specific action. Doesn't really make sense since the error could occur before symfony has loaded all the classes it needs to call the action. I know that the error is being thrown from within the action because I have stepped through in a debugger. As a work around I've manually caught the exception and done a redirect - although it would have been nicer to use the symfony exception handler and configure the behavior... -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Helpers and Widgets??
Thanks Daniel. ;) I know i should look better to OOP in PHP5, but unfortunally i don't have a lot of time to do it :( -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] 1.2 vs 1.3 : web debug indicates much slower configuration
For testing purposes i upgraded a project (that's already running on 1.2) to 1.3. I immediately noticed that the application was much slower was using more resources. Symfony 1.2.10 timings : http://www.flickr.com/photos/digitalbase/4253786085/ Symfony 1.3.1 timings : http://www.flickr.com/photos/digitalbase/4253786131/ Leading to a much slower application : Symfony 1.2.10 : http://www.flickr.com/photos/digitalbase/4253786199/ Symfony 1.3.1 : http://www.flickr.com/photos/digitalbase/4253786165/ Can anyone tell me why the configuration part is a lot slower although its the same codebase ? Is there any way to digg deeper in the configuration part (when it's called, by who, etc) ? I am aware that in 1.3 routing caching is disabled by default. Enabling it doesn't seem to change that much. More info : - php version : PHP 5.2.10-2ubuntu6.3 with Suhosin-Patch 0.9.7 - platform : DESKTOP01 2.6.31-16-generic - apache : 2.2.11 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] sf_user in url
I am building an intranet system and would like to have the user's username at the beginning of the url: example.com/username/foo/bar. I was able to accomplish this by creating a custom routing class but I am wondering if there is a better way, with filters or something... I don't want to have to set every route to the custom class. Any ideas? -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] get id from new row
HELP!!! I TRY THIS: //lib/model/doctrine/document.class.php public function save(Doctrine_Connection $conn = null) { $author= new document(); $author-setName($this-getName()); $author-setDocumentDescription($this-getDocumentDescription()); $author-save(); $sfUser = sfContext::getInstance(); $q = new document_trace(); $q-set('id_document', $author); //NOT WORK, ERROR $q-set('id_user', $sfUser-getUser()-getGuardUser()); $q-set('state', '0'); $q-save(); return parent::save(); } I want to save to another table for example (date, id_user, id_document) of the creation of a document for an audit ... I then keeping of large app / document to store the audit log .. but I have to take the new id_document HELP!! 2010/1/6 Eno symb...@gmail.com On Wed, 6 Jan 2010, Gabo wrote: HELP!! I try to capture the id of a new record for storage in an external table (document_trace) but not what brings me The ID comes from the database but you haven't saved the object so it has no ID yet. -- -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: 1.2 vs 1.3 : web debug indicates much slower configuration
Hi, i noticed the same thing with a project upgraded from 1.2 = 1.3 = 1.4 However a project created directly from 1.4 is ~ 3 time faster for the configuration. I guess it s from the yml that have been cleaned up from 1.2 to 1.3 ? Anyway i stoped caring since these configuration times only occur in dev environnement so it doesnt change anything in prod env ! On Jan 7, 6:47 pm, DigitalBase i...@digitalbase.eu wrote: For testing purposes i upgraded a project (that's already running on 1.2) to 1.3. I immediately noticed that the application was much slower was using more resources. Symfony 1.2.10 timings :http://www.flickr.com/photos/digitalbase/4253786085/ Symfony 1.3.1 timings :http://www.flickr.com/photos/digitalbase/4253786131/ Leading to a much slower application : Symfony 1.2.10 :http://www.flickr.com/photos/digitalbase/4253786199/ Symfony 1.3.1 :http://www.flickr.com/photos/digitalbase/4253786165/ Can anyone tell me why the configuration part is a lot slower although its the same codebase ? Is there any way to digg deeper in the configuration part (when it's called, by who, etc) ? I am aware that in 1.3 routing caching is disabled by default. Enabling it doesn't seem to change that much. More info : - php version : PHP 5.2.10-2ubuntu6.3 with Suhosin-Patch 0.9.7 - platform : DESKTOP01 2.6.31-16-generic - apache : 2.2.11 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: 1.2 vs 1.3 : web debug indicates much slower configuration
I made sure that ./symfony project:upgrade1.3 (or whatever that task is called) converted all my yml files into new correct syntax (not using no/yes but true/false). Development of pages with over 4seconds load time (due to configuration parsing) is unacceptable, so i will keep looking for a solution for this. Meanwhile i am trying to profile the app using xdebug cachegrind, but haven't found anything yet. On Jan 7, 8:29 pm, xplo xplo...@gmail.com wrote: Hi, i noticed the same thing with a project upgraded from 1.2 = 1.3 = 1.4 However a project created directly from 1.4 is ~ 3 time faster for the configuration. I guess it s from the yml that have been cleaned up from 1.2 to 1.3 ? Anyway i stoped caring since these configuration times only occur in dev environnement so it doesnt change anything in prod env ! On Jan 7, 6:47 pm, DigitalBase i...@digitalbase.eu wrote: For testing purposes i upgraded a project (that's already running on 1.2) to 1.3. I immediately noticed that the application was much slower was using more resources. Symfony 1.2.10 timings :http://www.flickr.com/photos/digitalbase/4253786085/ Symfony 1.3.1 timings :http://www.flickr.com/photos/digitalbase/4253786131/ Leading to a much slower application : Symfony 1.2.10 :http://www.flickr.com/photos/digitalbase/4253786199/ Symfony 1.3.1 :http://www.flickr.com/photos/digitalbase/4253786165/ Can anyone tell me why the configuration part is a lot slower although its the same codebase ? Is there any way to digg deeper in the configuration part (when it's called, by who, etc) ? I am aware that in 1.3 routing caching is disabled by default. Enabling it doesn't seem to change that much. More info : - php version : PHP 5.2.10-2ubuntu6.3 with Suhosin-Patch 0.9.7 - platform : DESKTOP01 2.6.31-16-generic - apache : 2.2.11 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] sfWidgetFormInputFileEditable admin required file
Hi, I still having this problem. Im using sfWidgetFormInputFileEditable for a backend form and when i edit the record with the image i have to choose the image file again otherwise i get required error for the file. the problem is that i don wanna change the file but every time i have to choose one file to overwrite the old one. Thank you for any help. Celso On Fri, Dec 11, 2009 at 12:27 PM, g0d br g0d...@gmail.com wrote: i get the error when i try to edit an record. create and delete works fine but if i try to edit an record and dont select any file when i hit save the required error appears. Thanks Celso On Fri, Dec 11, 2009 at 5:11 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: When you get that required error? Better what are you trying to achieve? sent via htc magic On Dec 11, 2009 1:11 AM, g0d br g0d...@gmail.com wrote: Hi, I have an schema like this: banner: id: ~ ordem: { type: integer, required: true } imagem: { type: varchar(255), required: true } link: { type: varchar(255), required: false } When i edit an record in admin module i get an error Required for imagem field. Thats the code in BannerForm.class.php parent::configure(); $this-widgetSchema['imagem'] = new sfWidgetFormInputFileEditable(array( 'label' = 'Imagem 630x288', 'file_src' = '/uploads/banner/'.$this-getObject()-getImagem(), 'is_image' = true, 'edit_mode' = !$this-isNew(), 'delete_label' = 'Remover imagem', 'template' = 'div%file%br /%input%br /%delete% %delete_label%/div', )); /* $this-widgetSchema['imagem'] = new sfWidgetFormInputFile(array( 'label' = 'Imagem 630x288', )); */ $this-validatorSchema['imagem'] = new sfValidatorFile(array( 'required' = true, 'path' = sfConfig::get('sf_upload_dir').'/banner', 'mime_types' = 'web_images', )); $this-validatorSchema['imagem_delete'] = new sfValidatorBoolean(); What an my doing wrong here? this code i get from symfony docs. Thank You Celso -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Any good reason to execute symfony with sudo?
Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Any good reason to execute symfony with sudo?
not quite. Chown the sf_root folder to match your user and pass. Alecs On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.comwrote: Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Any good reason to execute symfony with sudo?
I sometimes need to use sudo when clearing the cache or running fix-perms since apache usually runs as a different user than the owner of the directory. For the normal generator related stuff, no. On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote: not quite. Chown the sf_root folder to match your user and pass. Alecs On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Jacob Coby -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Any good reason to execute symfony with sudo?
you can put yourself in www-data group ... :) On Thu, Jan 7, 2010 at 10:47 PM, Jacob Coby jc...@portallabs.com wrote: I sometimes need to use sudo when clearing the cache or running fix-perms since apache usually runs as a different user than the owner of the directory. For the normal generator related stuff, no. On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote: not quite. Chown the sf_root folder to match your user and pass. Alecs On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Jacob Coby -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Any good reason to execute symfony with sudo?
Apache and Php needs write right to cache dir, this is why it is chmod'ed 777 using project:permissions task. You probably want apache and php read rights to read .php and other stuff, and need them write rights for cache and other dynamic-related folders (upload, etc). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 9:47 PM, Jacob Coby jc...@portallabs.com wrote: I sometimes need to use sudo when clearing the cache or running fix-perms since apache usually runs as a different user than the owner of the directory. For the normal generator related stuff, no. On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote: not quite. Chown the sf_root folder to match your user and pass. Alecs On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Jacob Coby -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Creation of a module without model
I need to create a mailing list app. I have all the addresses in a text file. Can I create a module that's not linked with a model class? Many thanks, G Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Creation of a module without model
symfony generate:app mailing_list symfony generate:module mailing_list sender Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 10:46 PM, Gianluca Sartori g.sart...@gmail.comwrote: I need to create a mailing list app. I have all the addresses in a text file. Can I create a module that's not linked with a model class? Many thanks, G Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] symfony 1.4 installation
It's actually quite easy if you have svn. I always install Symfony to /usr/local/share/symfony/VERSION. And I create symlinks in the /usr/local/bin to the symfony script with a meaningful name like sf1.3, sf1.4. It's as easy as: sudo mkdir /usr/local/share/symfony cd /usr/local/share/symfony sudo svn co http://svn.symfony-project.com/branches/1.3/ sudo ln -s /usr/local/share/symfony/1.3/data/bin/symfony /usr/local/bin/sf1.3 that's all. --- nathan @ http://twitter.com/nathan_gs nathan.gshttp://nathan.gs/?utm_source=mailing-listutm_medium=emailutm_campaign=blog On Thu, Jan 7, 2010 at 12:46 AM, Stéphane stephane.er...@gmail.com wrote: And replace, in your $project/config/projectConfiguration.class.php the first requires which reference your other sf version. Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Jan 6, 2010 at 7:27 PM, Gábor Fási maerl...@gmail.com wrote: You can also download the zip/tgz archive from the website, and extract it to your project's lib/vendor/symfony folder. On Wed, Jan 6, 2010 at 11:41, karansoni kanu8...@gmail.com wrote: i am using Ubuntu Linux 9.10 and i have installed symfony1.2.9 on it through pear . is there any phenomenon through which i can install the both versions symfony 1.2.9 and 1.4 on my linux though PEAR don't support two instalations then Do i have to install 1.4 through SVN??? I want to keep both versions on my PC with regards, karan soni -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: sf_user in url
Actually you do know the username. Just do a $this-getUser()-getUsername() in your catch you could use this as key. You could put the generated menu at the beginning of the login in the session. It still feels a bit dirty. Isn't there a way to catch based on unique combination of credentials? If users share the same set of credentials no additional overhead is needed. best regards, Nathan --- nathan @ http://twitter.com/nathan_gs nathan.gs http://nathan.gs/?utm_source=mailing-listutm_medium=emailutm_campaign=blog On Thu, Jan 7, 2010 at 7:56 PM, Kevin kevinb...@gmail.com wrote: The reason I am looking to do this is so I can cache the drop-down menu, it requires quite a few db calls and is pretty slow. Since different users see different options in the menu based on their credentials I need a user-based cache. By incorporating the username in the url I could accomplish this but a way without having their name in the url would be better. On Jan 7, 1:41 pm, Kevin kevinb...@gmail.com wrote: I am building an intranet system and would like to have the user's username at the beginning of the url: example.com/username/foo/bar. I was able to accomplish this by creating a custom routing class but I am wondering if there is a better way, with filters or something... I don't want to have to set every route to the custom class. Any ideas? -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Any good reason to execute symfony with sudo?
I would only give write permissions by the user running php (most of the times www-data) to cache, log and the upload directory. All else should be read only and preferable have another user, like the deployer (nathan in my case). Also it's considered very bad practice to give a file/directory 777 permissions, most of the time it's sufficient to chgrp the needed files and do chmod g+rw. Nathan -- nathan @ http://twitter.com/nathan_gs nathan.gs http://nathan.gs/?utm_source=mailing-listutm_medium=emailutm_campaign=blog On Thu, Jan 7, 2010 at 10:32 PM, Stéphane stephane.er...@gmail.com wrote: Apache and Php needs write right to cache dir, this is why it is chmod'ed 777 using project:permissions task. You probably want apache and php read rights to read .php and other stuff, and need them write rights for cache and other dynamic-related folders (upload, etc). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 9:47 PM, Jacob Coby jc...@portallabs.com wrote: I sometimes need to use sudo when clearing the cache or running fix-perms since apache usually runs as a different user than the owner of the directory. For the normal generator related stuff, no. On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote: not quite. Chown the sf_root folder to match your user and pass. Alecs On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Jacob Coby -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] File size validation?
This is actually a php limit. Not a Symfony one. There's not much you can do besides increasing your php max_post_size value. (but I wouldn't do this). Nathan -- nathan @ http://twitter.com/nathan_gs nathan.gs http://nathan.gs/?utm_source=mailing-listutm_medium=emailutm_campaign=blog On Thu, Jan 7, 2010 at 11:11 AM, Mark Smith marksmith5...@jungle-monkey.com wrote: Hi, I am trying to implement file size validation for an upload field on a form. For security / performance the php.ini post_max_size config setting is set to 8 mb. Now I want to limit the file size upload to about 1 mb. I am using the built in sfValidatorFile: $this-setValidator(file, new sfValidatorFile(array('max_size' = 100, 'mime_types' = array('text/plain'),'required'=false))); This works ok if the user uploads a 2 mb file, but if the post_max_size is exceeded by the user trying to upload a file of say 10mb, a 500 error page is produced! This is not very friendly and it makes it look like the page is broken, when actually it is a simple validation error. A way to request the browser to limit the file size would be acceptable, and the 500 page would be reserved for bad requests But sadly after a quick google it doesn't look like that is possible. How should this problem be dealt with? Thanks -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Any good reason to execute symfony with sudo?
What Nathan said. Unless your Symfony app is using backtick, passthru, exec or similar operators to execute shell commands (that MUST be run by root [is there any?]) then you shouldn't run Symfony as root or via sudo. It's simply bad practice, and introduces many more attack vectors to exploit. Everything that needs to be done regarding permissions to cache, log, tmp etc dirs can be configured by a competent sysadmin so that you don't need special or elevated permissions. Regarding what Nathan says about the deployer - I usually go as far as having a read-only SVN user named checkout which is used in combination with a certificate, so that checkouts can be made as that user, passwordless, to the deployment target. If necessary regular users can perform checkouts and updates on the live platform simply by switching users to checkout user. On 7 Jan 2010, at 22:05, Nathan wrote: I would only give write permissions by the user running php (most of the times www-data) to cache, log and the upload directory. All else should be read only and preferable have another user, like the deployer (nathan in my case). Also it's considered very bad practice to give a file/directory 777 permissions, most of the time it's sufficient to chgrp the needed files and do chmod g+rw. Nathan -- nathan @ nathan.gs On Thu, Jan 7, 2010 at 10:32 PM, Stéphane stephane.er...@gmail.com wrote: Apache and Php needs write right to cache dir, this is why it is chmod'ed 777 using project:permissions task. You probably want apache and php read rights to read .php and other stuff, and need them write rights for cache and other dynamic-related folders (upload, etc). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 9:47 PM, Jacob Coby jc...@portallabs.com wrote: I sometimes need to use sudo when clearing the cache or running fix-perms since apache usually runs as a different user than the owner of the directory. For the normal generator related stuff, no. On Jan 7, 2010, at 3:40 PM, Alexandru-Emil Lupu wrote: not quite. Chown the sf_root folder to match your user and pass. Alecs On Thu, Jan 7, 2010 at 10:09 PM, Javier Garcia tirengar...@gmail.com wrote: Hi, im wondering if is there any good reason to execute symfony with sudo. Javi -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Jacob Coby -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Problem sending mail
I'm using symphony verison 1.4 send strategy: none MailTransport: Mail Here is my code: /frontend/modules/newsletter/actions class newsletterActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this-getMailer()-composeAndSend('g.sart...@gmail.com', ' g.sart...@gmail.com', 'Subject', 'Body'); } } /frontend/config/factories.yml [snip] dev: mailer: param: delivery_strategy: none transport: class: Swift_MailTransport [snip] I'm getting this error: * * *Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (Connection refused) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php on line 233 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line105 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line159 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line336 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line357* * * * * *What's happening? Why is it trying to connect to smtp server on localhost?* * * *Tnx,* *G* * * Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Problem sending mail
You need to configure your http://fr.php.net/manual/en/mail.configuration.php#ini.smtp Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 11:58 PM, Gianluca Sartori g.sart...@gmail.comwrote: I'm using symphony verison 1.4 send strategy: none MailTransport: Mail Here is my code: /frontend/modules/newsletter/actions class newsletterActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this-getMailer()-composeAndSend('g.sart...@gmail.com', ' g.sart...@gmail.com', 'Subject', 'Body'); } } /frontend/config/factories.yml [snip] dev: mailer: param: delivery_strategy: none transport: class: Swift_MailTransport [snip] I'm getting this error: * * *Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (Connection refused) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php on line 233 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line105 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line159 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line336 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line357* * * * * *What's happening? Why is it trying to connect to smtp server on localhost?* * * *Tnx,* *G* * * Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Problem sending mail
change your delivery_strategy: none to spool or realtime in order to make it send emails ... here is my config mailer: class: sfMailer param: logging: %SF_LOGGING_ENABLED% charset: %SF_CHARSET% delivery_strategy: spool spool_class: Swift_DoctrineSpool spool_arguments: [ MailMessage, message ] transport: class: Swift_SmtpTransport param: host: localhost port: 25 encryption: ~ username: WHATEVER YOUR USER IS password: WHATEVER YOUR PASSWORD IS On Fri, Jan 8, 2010 at 1:04 AM, Stéphane stephane.er...@gmail.com wrote: You need to configure your http://fr.php.net/manual/en/mail.configuration.php#ini.smtp Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 11:58 PM, Gianluca Sartori g.sart...@gmail.comwrote: I'm using symphony verison 1.4 send strategy: none MailTransport: Mail Here is my code: /frontend/modules/newsletter/actions class newsletterActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this-getMailer()-composeAndSend('g.sart...@gmail.com', ' g.sart...@gmail.com', 'Subject', 'Body'); } } /frontend/config/factories.yml [snip] dev: mailer: param: delivery_strategy: none transport: class: Swift_MailTransport [snip] I'm getting this error: * * *Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (Connection refused) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php on line 233 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line105 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line159 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line336 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line357* * * * * *What's happening? Why is it trying to connect to smtp server on localhost?* * * *Tnx,* *G* * * Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Have a nice day! Alecs As programmers create bigger better idiot proof programs, so the universe creates bigger better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Problem sending mail
Even with mail strategy: none? G Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 On Fri, Jan 8, 2010 at 12:04 AM, Stéphane stephane.er...@gmail.com wrote: You need to configure your http://fr.php.net/manual/en/mail.configuration.php#ini.smtp Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 11:58 PM, Gianluca Sartori g.sart...@gmail.comwrote: I'm using symphony verison 1.4 send strategy: none MailTransport: Mail Here is my code: /frontend/modules/newsletter/actions class newsletterActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this-getMailer()-composeAndSend('g.sart...@gmail.com', ' g.sart...@gmail.com', 'Subject', 'Body'); } } /frontend/config/factories.yml [snip] dev: mailer: param: delivery_strategy: none transport: class: Swift_MailTransport [snip] I'm getting this error: * * *Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (Connection refused) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php on line 233 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line105 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line159 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line336 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line357* * * * * *What's happening? Why is it trying to connect to smtp server on localhost?* * * *Tnx,* *G* * * Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Fwd: [symfony-users] get id from new row
HELP!!! I TRY THIS: //lib/model/doctrine/document.class.php public function save(Doctrine_Connection $conn = null) { $author= new document(); $author-setName($this-getName()); $author-setDocumentDescription($this-getDocumentDescription()); $author-save(); $sfUser = sfContext::getInstance(); $q = new document_trace(); $q-set('id_document', $author); //NOT WORK, ERROR $q-set('id_user', $sfUser-getUser()-getGuardUser()); $q-set('state', '0'); $q-save(); return parent::save(); } I want to save to another table for example (date, id_user, id_document) of the creation of a document for an audit ... I then keeping of large app / document to store the audit log .. but I have to take the new id_document HELP!! 2010/1/6 Eno symb...@gmail.com On Wed, 6 Jan 2010, Gabo wrote: HELP!! I try to capture the id of a new record for storage in an external table (document_trace) but not what brings me The ID comes from the database but you haven't saved the object so it has no ID yet. -- -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] default value in form extracted from session
Hi, My data model has a Pc table with a 1-n relation with an Eth table. I'd like to configure the backend forms in order to : 1 - Show 'New Pc form' with button 'save and add interface' 2 - When pc is saved (processForm), Pcs new id is put in session 3 - Then, the form for creating a new interface is shown At step 3, I want the form for the interface to avoid the selection of the Pc, which should be the one just created. I've tried to do this this way, but does not work : // lib/form/doctrine/EthForm.class.php class EthForm extends BaseEthForm { public function configure() { $this-setDefault('id_obj', sfUser::getAttribute('pc')); } } Could someone help me to do this right ? Regards, Mikael -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] get id from new row
$q-set('id_document', $author-getId()); - does it work ? if you get error message, please copy/past them. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8, 2010 at 1:02 AM, Gabo gabopo...@gmail.com wrote: HELP!!! I TRY THIS: //lib/model/doctrine/document.class.php public function save(Doctrine_Connection $conn = null) { $author= new document(); $author-setName($this-getName()); $author-setDocumentDescription($this-getDocumentDescription()); $author-save(); $sfUser = sfContext::getInstance(); $q = new document_trace(); $q-set('id_document', $author); //NOT WORK, ERROR $q-set('id_user', $sfUser-getUser()-getGuardUser()); $q-set('state', '0'); $q-save(); return parent::save(); } I want to save to another table for example (date, id_user, id_document) of the creation of a document for an audit ... I then keeping of large app / document to store the audit log .. but I have to take the new id_document HELP!! 2010/1/6 Eno symb...@gmail.com On Wed, 6 Jan 2010, Gabo wrote: HELP!! I try to capture the id of a new record for storage in an external table (document_trace) but not what brings me The ID comes from the database but you haven't saved the object so it has no ID yet. -- -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] get id from new row
On 8 Jan 2010, at 00:02, Gabo wrote: HELP!!! I TRY THIS: //lib/model/doctrine/document.class.php public function save(Doctrine_Connection $conn = null) { $author= new document(); $author-setName($this-getName()); $author-setDocumentDescription($this-getDocumentDescription()); $author-save(); $sfUser = sfContext::getInstance(); $q = new document_trace(); $q-set('id_document', $author); //NOT WORK, ERROR Should be $q-set('id_document', $author-getId()); $q-set('id_user', $sfUser-getUser()-getGuardUser()); $q-set('state', '0'); $q-save(); return parent::save(); } I want to save to another table for example (date, id_user, id_document) of the creation of a document for an audit ... I then keeping of large app / document to store the audit log .. but I have to take the new id_document HELP!! 2010/1/6 Eno symb...@gmail.com On Wed, 6 Jan 2010, Gabo wrote: HELP!! I try to capture the id of a new record for storage in an external table (document_trace) but not what brings me The ID comes from the database but you haven't saved the object so it has no ID yet. -- -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Problem sending mail
There are some informations about this here : http://www.symfony-project.org/advent_calendar/5/en You are using SmtpTransport which use php mail function, which use smtp php ini. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8, 2010 at 12:58 AM, Gianluca Sartori g.sart...@gmail.comwrote: Even with mail strategy: none? G Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 On Fri, Jan 8, 2010 at 12:04 AM, Stéphane stephane.er...@gmail.comwrote: You need to configure your http://fr.php.net/manual/en/mail.configuration.php#ini.smtp Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Thu, Jan 7, 2010 at 11:58 PM, Gianluca Sartori g.sart...@gmail.comwrote: I'm using symphony verison 1.4 send strategy: none MailTransport: Mail Here is my code: /frontend/modules/newsletter/actions class newsletterActions extends sfActions { public function executeIndex(sfWebRequest $request) { $this-getMailer()-composeAndSend('g.sart...@gmail.com', ' g.sart...@gmail.com', 'Subject', 'Body'); } } /frontend/config/factories.yml [snip] dev: mailer: param: delivery_strategy: none transport: class: Swift_MailTransport [snip] I'm getting this error: * * *Warning: fsockopen() [function.fsockopen]: unable to connect to localhost:25 (Connection refused) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php on line 233 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line105 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/exception/sfException.class.php on line159 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line336 Warning: Cannot modify header information - headers already sent by (output started at /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/vendor/swiftmailer/classes/Swift/Transport/StreamBuffer.php:233) in /Users/giangio/Sites/CW/cgi-bin/registry/lib/symfony/lib/response/sfWebResponse.class.php on line357* * * * * *What's happening? Why is it trying to connect to smtp server on localhost?* * * *Tnx,* *G* * * Gianluca Sartori Project Manager - Consulting Academy ELIS Via Sandro Sandri, 45 - 00159 Rome, Italy (web) http://consulting-academy.elis.org (tel) +39 06 4356 0424 (cel) +39 346 2373 445 -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] get id from new row
On 8 Jan 2010, at 00:19, Lee Bolding wrote: On 8 Jan 2010, at 00:02, Gabo wrote: $q = new document_trace(); $q-set('id_document', $author); //NOT WORK, ERROR Should be $q-set('id_document', $author-getId()); I want to save to another table for example (date, id_user, id_document) of the creation of a document for an audit ... I then keeping of large app / document to store the audit log .. but I have to take the new id_document My suggestion above will work, but it's not the best way... You should use the Doctrine auditable behavior (I think that's what it's called). You could also use a stored procedure in the database. For a large app, I'd go with the stored procedure - it's keeping the work in the database, less requests, less network traffic/latency, and offers greater decoupling (you still get the auditing, even if the database is manually changed, regardless of HOW it's changed) There's probably other methods as well that would be better (another instance where AOP would be handy) -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8
I have been using NuSphere's PhpED for the past six months. It is not free (though a trail version is available), however it is better than Eclipse/Netbeans by leaps and bounds. If feels much more coherent, there is no excessive overfunctionality. Writing macros for symfony is a piece of cake, there is a GREAT debugger, and last but not least - it is goddamn fast. Unlike what most IDEs seem to be going for right now (Java), PhpED is written in C++. The one downside I guess would be the fact that its only available for Windows (well, that and the quite hefty price tag, but you really do get what you pay for). On Jan 7, 2:32 pm, pghoratiu pghora...@gmail.com wrote: I converted to Netbeans 6.8 from the latest Eclipse version, personally I had problems with Eclipse unreliable code completion and high resource usage (both cpu and memory). Unfortunately not everything is perfect with Netbeans, I experienced also the high CPU usage lockup (i suspect it has something to do with code completion that fails and goes into an infinite loop). So if there are better IDE's than these I'm looking forward :) For anyone using Java based editors my suggestion is to use the Sun JRE (for both Eclipse and Netbeans) the one that comes bundled with a Linux distributions may not work as well. gabriel On Jan 7, 12:55 pm, Christopher Schnell ty...@mda.ch wrote: I use Eclipse, too, but would like to use Netbeans. I can't because since updateing to Fedora 12, it freezes radomly and crashes my entire system. And I can't use another Distribution because Fedora is the only, I know of that supports my 2 monitors. Netbeans has better code-completion with static functions which is great when using Propel. Regards, Christopher. Gareth McCumskey schrieb: Personally I use Eclipse and struggle to do without the features this IDE gives me. Never used Netbeans but may give it a go, because I like the idea of having symfony support builtin - Original Message - From: Christopher Schnell ty...@mda.ch To: symfony-users@googlegroups.com Sent: Thursday, January 7, 2010 10:44:13 AM GMT +02:00 Harare / Pretoria Subject: Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8 There is also a video tutorial at http://netbeans.org/kb/docs/php/symfony-screencast.html Regards, Christopher. P.S. I still can't believe there are so many of you NOT working with a decent IDE like Eclipse or Netbeans. FractalizeR schrieb: NetBeans 6.8 has built-in Symfony support. I have composed small blog- post about setting up symfony project in NetBeans: http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly... I consider now NetBeans as a replacement for Zend Studio ;) -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Free opensource Symfony-friendly PHP IDE: NetBeans 6.8
I've been using it under linux for a while, with wine - everything but the debugger works fine. On Fri, Jan 8, 2010 at 01:41, Crafty_Shadow vankat...@gmail.com wrote: I have been using NuSphere's PhpED for the past six months. It is not free (though a trail version is available), however it is better than Eclipse/Netbeans by leaps and bounds. If feels much more coherent, there is no excessive overfunctionality. Writing macros for symfony is a piece of cake, there is a GREAT debugger, and last but not least - it is goddamn fast. Unlike what most IDEs seem to be going for right now (Java), PhpED is written in C++. The one downside I guess would be the fact that its only available for Windows (well, that and the quite hefty price tag, but you really do get what you pay for). On Jan 7, 2:32 pm, pghoratiu pghora...@gmail.com wrote: I converted to Netbeans 6.8 from the latest Eclipse version, personally I had problems with Eclipse unreliable code completion and high resource usage (both cpu and memory). Unfortunately not everything is perfect with Netbeans, I experienced also the high CPU usage lockup (i suspect it has something to do with code completion that fails and goes into an infinite loop). So if there are better IDE's than these I'm looking forward :) For anyone using Java based editors my suggestion is to use the Sun JRE (for both Eclipse and Netbeans) the one that comes bundled with a Linux distributions may not work as well. gabriel On Jan 7, 12:55 pm, Christopher Schnell ty...@mda.ch wrote: I use Eclipse, too, but would like to use Netbeans. I can't because since updateing to Fedora 12, it freezes radomly and crashes my entire system. And I can't use another Distribution because Fedora is the only, I know of that supports my 2 monitors. Netbeans has better code-completion with static functions which is great when using Propel. Regards, Christopher. Gareth McCumskey schrieb: Personally I use Eclipse and struggle to do without the features this IDE gives me. Never used Netbeans but may give it a go, because I like the idea of having symfony support builtin - Original Message - From: Christopher Schnell ty...@mda.ch To: symfony-users@googlegroups.com Sent: Thursday, January 7, 2010 10:44:13 AM GMT +02:00 Harare / Pretoria Subject: Re: [symfony-users] Free opensource Symfony-friendly PHP IDE: NetBeans 6.8 There is also a video tutorial at http://netbeans.org/kb/docs/php/symfony-screencast.html Regards, Christopher. P.S. I still can't believe there are so many of you NOT working with a decent IDE like Eclipse or Netbeans. FractalizeR schrieb: NetBeans 6.8 has built-in Symfony support. I have composed small blog- post about setting up symfony project in NetBeans: http://www.fractalizer.ru/frpost_393/free-opensource-symfony-friendly... I consider now NetBeans as a replacement for Zend Studio ;) -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] get id from new row
ERROR 500 | Internal Server Error | Doctrine_Validator_Exception Validation failed in class document_trace 1 field had validation error: * 1 validator failed on id_document (notnull) is a new record ($ this- getId ()), so it is empty. 2010/1/7 Stéphane stephane.er...@gmail.com $q-set('id_document', $author-getId()); - does it work ? if you get error message, please copy/past them. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Jan 8, 2010 at 1:02 AM, Gabo gabopo...@gmail.com wrote: HELP!!! I TRY THIS: //lib/model/doctrine/document.class.php public function save(Doctrine_Connection $conn = null) { $author= new document(); $author-setName($this-getName()); $author-setDocumentDescription($this-getDocumentDescription()); $author-save(); $sfUser = sfContext::getInstance(); $q = new document_trace(); $q-set('id_document', $author); //NOT WORK, ERROR $q-set('id_user', $sfUser-getUser()-getGuardUser()); $q-set('state', '0'); $q-save(); return parent::save(); } I want to save to another table for example (date, id_user, id_document) of the creation of a document for an audit ... I then keeping of large app / document to store the audit log .. but I have to take the new id_document HELP!! 2010/1/6 Eno symb...@gmail.com On Wed, 6 Jan 2010, Gabo wrote: HELP!! I try to capture the id of a new record for storage in an external table (document_trace) but not what brings me The ID comes from the database but you haven't saved the object so it has no ID yet. -- -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Symfony mail
Buena Noche Juan Pablo Quciera preguntarte en symfony 1.2 con plugin PHPmailer como envias tu un mail?? Un ejemplo en un save? o en una funcion?? gracias. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] redirect method covert to amp;
yes I've already know that, but I've also found that when I use a route name directly (put a '@' before the route name), sf will always throw error the route not found if the route has parameters. I tried it in sf 1.4. Eno wrote: On Wed, 6 Jan 2010, chrisyue wrote: in an action method if I use $this-redirect('a_route_name', array( 'a' = '1', 'b' = '2', 'c' = '3')); it will redirect to a url like /the_route?a=1amp;b=2amp;c=3, is it a bug? or I just use it wrong? Route names usually have a @ in front: http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-System#chapter_09_sub_speeding_up_routing_by_using_the_rule_name -- -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: redirect method covert to amp;
you need to explicitly call ini_set('arg_separator.output', ''); before ProjectConfigutation On Jan 8, 10:43 am, chrisyue blizzch...@gmail.com wrote: yes I've already know that, but I've also found that when I use a route name directly (put a '@' before the route name), sf will always throw error the route not found if the route has parameters. I tried it in sf 1.4. Eno wrote: On Wed, 6 Jan 2010, chrisyue wrote: in an action method if I use $this-redirect('a_route_name', array( 'a' = '1', 'b' = '2', 'c' = '3')); it will redirect to a url like /the_route?a=1amp;b=2amp;c=3, is it a bug? or I just use it wrong? Route names usually have a @ in front: http://www.symfony-project.org/book/1_2/09-Links-and-the-Routing-Syst... -- -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Helpers and Widgets??
On Thu, 7 Jan 2010, wueb wrote: I know i should look better to OOP in PHP5, but unfortunally i don't have a lot of time to do it :( In fact, you probably should read the symfony docs too. -- -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] get id from new row
Pastebin your form. Obviously you do it wrong... I don't have an example atm. Alecs sent via htc magic On Jan 8, 2010 2:55 AM, Gabo gabopo...@gmail.com wrote: ERROR 500 | Internal Server Error | Doctrine_Validator_Exception Validation failed in class document_trace 1 field had validation error: * 1 validator failed on id_document (notnull) is a new record ($ this- getId ()), so it is empty. 2010/1/7 Stéphane stephane.er...@gmail.com $q-set('id_document', $author-getId()); - does it work ? if you get error message, pleas... -- You received this message because you are subscribed to the Google Groups symfony users group. ... -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Helpers and Widgets??
You don't time to learn?! Sorry for asking ... what it does the difference between you and concurency. I could bet that you lost few minutes trying that construct problem. Few minutes a day would help you out. You are not doing this for me or comunity... but yourself. sent via htc magic On Jan 8, 2010 7:12 AM, Eno symb...@gmail.com wrote: On Thu, 7 Jan 2010, wueb wrote: I know i should look better to OOP in PHP5, but unfortunally i do... In fact, you probably should read the symfony docs too. -- -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] default value in form extracted from session
Wouldn't it be a lot better if you pass the pc_id to the new form like this (in the controller): $eth = new Eth() $eth-pc_id = sfUser::getAttribute('pc'); $ethForm = new EthForm($eth); There should be a loose coupling between classes. This way it's a lot cleaner. As for the pc id storing in the session, I wouldn't. I would just after creating a pc do a redirect to the Eth form with the pc id as a request parameter (get/post). Nathan On Fri, Jan 8, 2010 at 1:02 AM, Mikael mikael.kermorg...@gmail.com wrote: Hi, My data model has a Pc table with a 1-n relation with an Eth table. I'd like to configure the backend forms in order to : 1 - Show 'New Pc form' with button 'save and add interface' 2 - When pc is saved (processForm), Pcs new id is put in session 3 - Then, the form for creating a new interface is shown At step 3, I want the form for the interface to avoid the selection of the Pc, which should be the one just created. I've tried to do this this way, but does not work : // lib/form/doctrine/EthForm.class.php class EthForm extends BaseEthForm { public function configure() { $this-setDefault('id_obj', sfUser::getAttribute('pc')); } } Could someone help me to do this right ? Regards, Mikael -- 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...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- nat...@nathan.gs : http://nathan.gs : http://twitter.com/nathan_gs -- 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...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.