[symfony-users] Dependency injection and sfEventDispatcher

2009-09-17 Thread david.stendardi
Hello folks, I'am integrating the dependeny injection on a project and i must say it is very efficient. I discovered the constructor option that allowed me to connect existing symfony singleton to my component by writing something like this in my service.yml : context: class: sfContext

[symfony-users] Performance optimization!HELP!!

2009-09-17 Thread Shi Zhuguo
Hi there, We've just finished a product using Symfony 1.2.7 and it is going to be online. But after test we got a critical performance problem. We use Doctrine as database interface layer. So far we haven't do many optimizations so I am here for some practical, effective and quick ways to do

[symfony-users] yml parse error on running upgrade1.3

2009-09-17 Thread layanto
I tried to upgrade my 1.2 project to use symfony 1.3 (latest checkout - 16/09/09). I am aware of the new yml specification and have modified my yml to use true/false instead of on/off. However, the upgrade1.3 program encountered a problem parsing validation yml (of sfDoctrineApplyPlugin) with

[symfony-users] Re: help

2009-09-17 Thread Gareth McCumskey
Are you using Propel or Doctrine as your ORM in symfony? Have you tried anything and if so what error messages did you get? Did you try googling? On Wed, Sep 16, 2009 at 11:52 PM, Gabriel Guzman gabo.ic...@gmail.comwrote: well i am working in framework symfony and my database in informix but a

[symfony-users] PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA
Hi, Did anyone used php mail function (on linux) to send email ? I have done the required settings on the php.ini ; For Unix only. You may supply arguments as well (default: sendmail -t -i). sendmail_path = /usr/sbin/sendmail -t sendmail_from = deepak.bha...@nechclst.in The sample mail file

[symfony-users] Re: help

2009-09-17 Thread Gareth McCumskey
After a 10 minute googling and looking at PHP PDO which Propel 1.3 and Doctrine both use to communicate to databases, yes you can use informix. Just use the informix keyword in your dsn connection string. Go to your projects config/databases.yml file and set the dsn as:

[symfony-users] Re: PHP mail function not working

2009-09-17 Thread Gábor Fási
Errors, etc? If properly configured, it works - just like it does for me. On the other hand, for sending mails I recommend swiftmailer, that has recently been taken over by the creator of symfony, Fabien Potencier; and will become the default mailer solution in the framework [1]. [1]

[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA
Hi, I am trying to setup the Microsoft Outlook Calender using php mail function. I think that is not possible using swiftmailer ? But I am also using swift mailer. How do we set Fully Qualified Domain Name the /etc/hosts file. Regards Deepak Bhatia On Thu, Sep 17, 2009 at 1:04 PM, Gábor

[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA
Hi, Is it possible to send me the various settings to be done for sendmail to work ? Thanks Deepak Bhatia On Thu, Sep 17, 2009 at 1:04 PM, Gábor Fási maerl...@gmail.com wrote: Errors, etc? If properly configured, it works - just like it does for me. On the other hand, for sending mails I

[symfony-users] Re: Performance optimization!HELP!!

2009-09-17 Thread Phil Moorhouse
Make sure you've read http://www.symfony-project.org/book/1_2/18-Performance - lots of good advice there. http://www.symfony-check.org/ is another useful site. In order of the biggest improvement for the least amount of effort, I'd say: 1. Install a PHP accelerator 2. Make sure your db tables

[symfony-users] Re: Performance optimization!HELP!!

2009-09-17 Thread Sid Ferreira
looking at rhe debug toolbar is always excelent to see what exactly is taking so long... On Thu, Sep 17, 2009 at 06:50, Phil Moorhouse moorhouse.p...@googlemail.com wrote: Make sure you've read http://www.symfony-project.org/book/1_2/18-Performance - lots of good advice there.

[symfony-users] Sending ICS information with Swift Mail

2009-09-17 Thread DEEPAK BHATIA
Can we send the ICS information with the swift mail ? ? $to = 'toreachdee...@gmail.com' $subject = Training Registration; $message = Thank you for participating in the Technical Certification training program.\n\n; //== $headers = 'Content-Type:text/calendar; Content-Disposition:

[symfony-users] Re: Performance optimization!HELP!!

2009-09-17 Thread Gareth McCumskey
3. Minimise the number of queries with joins I would be careful about this as we have found a few times now that reducing a join to multiple queries actually increases performance. This is very much a case by case basis. -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter:

[symfony-users] Re: Sending ICS information with Swift Mail

2009-09-17 Thread Eno
On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: Can we send the ICS information with the swift mail ? Note: MIME type for vcalendar files is text/x-vCalendar. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[symfony-users] Re: Ajax queuing behaviour driving us mad

2009-09-17 Thread Gareth McCumskey
I just had to add a bit more info on this issue. If you use symfony's session set/get methods through the sfUser class ($this-getUser()-setAttribute() / $this-getUser()-getAttribute() ), symfony does not actually write the session data into $_SESSION as you send set commands but stores it into its

[symfony-users] Re: yml parse error on running upgrade1.3

2009-09-17 Thread Jacob Coby
Remove the true on the required: lines. Happens every time after upgrading 1.0 projects. On Sep 16, 2009, at 11:48 PM, layanto wrote: I tried to upgrade my 1.2 project to use symfony 1.3 (latest checkout - 16/09/09). I am aware of the new yml specification and have modified my yml to use

[symfony-users] Re: Performance optimization!HELP!!

2009-09-17 Thread Jacob Coby
On Sep 17, 2009, at 7:47 AM, Gareth McCumskey wrote: 3. Minimise the number of queries with joins I would be careful about this as we have found a few times now that reducing a join to multiple queries actually increases performance. This is very much a case by case basis. That's

[symfony-users] Re: changing the field content when using the executeEdit action

2009-09-17 Thread Eno
On Wed, 16 Sep 2009, Yaniv wrote: the problem start when i want to use edit method auto generated by propel because it generate the model form already filled with the current data from the object that's OK for all other properties of the object but it also show the original size of the image

[symfony-users] Re: help

2009-09-17 Thread Eno
On Thu, 17 Sep 2009, Gareth McCumskey wrote: After a 10 minute googling and looking at PHP PDO which Propel 1.3 and Doctrine both use to communicate to databases, yes you can use informix. Just use the informix keyword in your dsn connection string. Do you need PDO Informix driver in PHP

[symfony-users] Re: help

2009-09-17 Thread Gabriel Guzman
I am using Doctrine .. but a i have a error : listTable not supportted by this driver On Thu, Sep 17, 2009 at 2:06 AM, Gareth McCumskey gmccums...@gmail.comwrote: Are you using Propel or Doctrine as your ORM in symfony? Have you tried anything and if so what error messages did you get? Did you

[symfony-users] Re: Doctrine versionable behavior: how to ignore some fields change?

2009-09-17 Thread Nicolas CHARLOT
Le 28 août 09 à 09:31, Nicolas CHARLOT a écrit : Hi, I'm using Sf 1.2 / Doctrine 1.1.3. This is the model: Person: tableName: person actAs: Versionable: columns: id: type: integer(4) unsigned: true primary: true

[symfony-users] Using symfony 1.2 validators

2009-09-17 Thread Eemerge
Hello, I have used symfony forms 1.2 with validators...but i was wondering, i need to use validators without creating the form class, just use it with a plain old simple form. I tried using validator-execute(...) but that doesnt work. Can it be done without using the whole form+validators

[symfony-users] Re: display form error message

2009-09-17 Thread Icetear
I have the same problem. And after reading the Forms in Action book i still have no idea how to set a certain validator to false / generate an error if the conditions for this can't be reproduced by a symfony validator. Can perhaps someone give a hint in the right direction? My code does the

[symfony-users] Re: display form error message (SOLVED)

2009-09-17 Thread Icetear
ok I finally found the solution. 1. create a new class e.g. sfMyValidator extends sfValidatorString 2. extend the doClean and configure methods: public function configure($options = array(), $messages = array()) { parent::configure($options = array(), $messages = array()); // extending the

[symfony-users] Re: Calendar plugin

2009-09-17 Thread Rajesh Kodali
We are facing issues in integrating ics based calendar. But we don't have much time as the delivery dates at just down the lane. We are now doing this with webcalendar. Our Veetsa Team is working to make it symfony plugged after this project. On Thu, Sep 17, 2009 at 10:38 AM, DEEPAK BHATIA

[symfony-users] Re: Calendar plugin

2009-09-17 Thread DEEPAK BHATIA
Hi Rajesh, I am thinking of using http://www.kigkonsult.se/iCalcreator/index.php This way I will create the ics files based on the IETF standard using the same and then send them as as MIME type for vcalendar files - text/x-vCalendar through the Swift Mail. Please let me know your comments

[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA
Hi, Do you mean SSL ? But I am not taking about TLS. The mail function of PHP uses sendmail on linux. When I execute above php page, the mail is not going to the recipietn. I hope we understand each other. Regards Deepak On Thu, Sep 17, 2009 at 9:04 PM, pcummins patwcumm...@gmail.com

[symfony-users] Re: Calendar plugin

2009-09-17 Thread DEEPAK BHATIA
Hi Rajesh, Can I ask you why you are integrating the Calender ? Is it to get view like Microsoft Calender ? Regards Deepak Bhatia On Fri, Sep 4, 2009 at 8:13 PM, Rajesh Kodali rajeshkod...@gmail.com wrote: Hi Guys, I did not receive any reply to my previous post on Calendar plug-in. Can

[symfony-users] Re: PHP mail function not working

2009-09-17 Thread Patrick Cummins
Yes... I was talking about sending through SMTP (on an exchange server). Some exchange servers require TLS, not just SSL. On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Hi, Do you mean SSL ? But I am not taking about TLS. The mail function of PHP uses

[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA
Swiftmail uses sendmail and mail as well. On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins patwcumm...@gmail.com wrote: Yes...  I was talking about sending through SMTP (on an exchange server). Some exchange servers require TLS, not just SSL. On Thu, Sep 17, 2009 at 12:40 PM, DEEPAK

[symfony-users] Re: Using symfony 1.2 validators

2009-09-17 Thread Gábor Fási
You do not need use the form framework to use the validators. You need the clean() function, not the execute. On Thu, Sep 17, 2009 at 11:30, Eemerge eeme...@gmail.com wrote: Hello, I have used symfony forms 1.2 with validators...but i was wondering, i need to use validators without creating

[symfony-users] Re: yml parse error on running upgrade1.3

2009-09-17 Thread layanto
But the plugins that I am using are for symfony 1.2!!?. Will try later tonight and report back. On Sep 17, 10:49 pm, Jacob Coby jc...@portallabs.com wrote: Remove the true on the required: lines. Happens every time after upgrading 1.0 projects. On Sep 16, 2009, at 11:48 PM, layanto wrote:

[symfony-users] Re: changing the field content when using the executeEdit action

2009-09-17 Thread במילעל
Eno thanks so much for replying i already defined a configure() method in that form class but as mensioned the problem is when i use the executeedit method in the model's action class what happens is that the form is open with the fields alredy filled with the data from the object (that's OK) but

[symfony-users] Re: changing the field content when using the executeEdit action

2009-09-17 Thread Alexandru-Emil Lupu
Message at the bottom On Fri, Sep 18, 2009 at 12:02 AM, גולן (במילעל) stu...@yanivgolan.comwrote: Eno thanks so much for replying i already defined a configure() method in that form class but as mensioned the problem is when i use the executeedit method in the model's action class what

[symfony-users] publication project on the server - where place files ?

2009-09-17 Thread mini_alexander
As I understand I must place all Symfony files and folders in folder 'public_html' ? Because in Zend Framework in folder 'public_html' on the server I must place only content of Zend Framework folder 'public' . --~--~-~--~~~---~--~~ You received this message

[symfony-users] Re: publication project on the server - where place files ?

2009-09-17 Thread Stefan Koopmanschap
Hi, No, the document root of your webserver should point to symfony's web directory. Everything outside of that should not be included in your document root (otherwise people could for instance access config/ databases.yml file and see your database credentials). Stefan On Sep 17, 7:38 pm,

[symfony-users] Re: changing the field content when using the executeEdit action

2009-09-17 Thread במילעל
Alecs, I appricate the help :) overriding the $form-save() method sounds reasonble, will check as soon as i get back to my coding machine conclusion will be posted :) cheers On Sep 18, 12:25 am, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Message at the bottom On Fri, Sep 18, 2009 at

[symfony-users] Re: Custom Fields in sfGuardUser list filters

2009-09-17 Thread Jose San Gil
Hello... maybe it's to late but, did you find a solution to this problem? On 24 jul, 11:46, Denis Fingonnet dfingon...@gmail.com wrote: Hello all, I'm stuck here, I need help from the community. Here is my schema : MyUser:   columns:     sf_guard_user_id:       type: integer(4)  

[symfony-users] Is sfWeatherPlugin Unreliable?

2009-09-17 Thread avani pujara
Hey Frieds, I want to add weather information to my site. I want to use sfWeatherPlugin. But I heard that it's unreliable? is it so? What is good solution to show weather information? Thanks in advance !!! --~--~-~--~~~---~--~~ You received this message because

[symfony-users] Re: PHP mail function not working

2009-09-17 Thread DEEPAK BHATIA
Hi, Shall I use PHP Mailer or Swift Mail ? Regards Deepak On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins patwcumm...@gmail.com wrote: Yes...  I was talking about sending through SMTP (on an exchange server). Some exchange servers require TLS, not just SSL. On Thu, Sep 17, 2009 at

[symfony-users] Re: sf_guard error: Fatal error: Allowed memory size of 16777216 bytes exhausted

2009-09-17 Thread Jake Barnes
Well, I deleted every mention of the function format_date() and now everything works fine. Truly strange why I could not get the function to work. On Sep 12, 11:47 am, Jake Barnes lkrub...@geocities.com wrote: On Sep 12, 10:58 am, pcummins patwcumm...@gmail.com wrote: It sounds like you