[symfony-users] Re: Dependency Injection and Imports
I have just added this possibility. Fabien -- Fabien Potencier Sensio CEO - symfony lead developer sensiolabs.com | symfony-project.org | fabien.potencier.org Tél: +33 1 40 99 80 80 Bernhard Schussek wrote: > Hi, > > I just read the documentation of the Dependency Injection Container > and wonder whether it is possible to load several files at once > (contrary to importing): > > e.g.: > $loader->load('model.xml', 'application.xml'); > > Spring has this ability, and combining multiple bean definitions this > way is considered better than hard-coding the imports[1], because the > bean definition files don't need to be aware of each other. This can > be important if you, for instance, want to use model.xml in production > and test environments, but want to combine it with different other XML > files. > > So is this possible? > > > Bernhard > > [1] > http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-xml-import > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: Dependency injection and sfEventDispatcher
Hello, I'm not sure about how to do that, but a simple trick would be to have a static method in your ProjectConfiguration class which will return the dispatcher: // in your ProjectConfiguration.class.php public static function getEventDispatcherInstance() { return self::getActive()->getEventDispatcher() } // and in your services.yml dispatcher: class: ProjectConfiguratition constructor: getEventDispatcherInstance On Thu, Sep 17, 2009 at 12:42 AM, david.stendardi wrote: > > 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 > constructor: getInstance > > my.service: > class: myServiceClass > arguments: [...@context] > > > Anyway, i don't like very much the idea to be dependant of sfContext, > and i would like to now if there is a way to > create a dependency to sfEventDispatcher used by the project > configuration, without having to refer to a specific content ? > > Cheers ! > > > > However i would like > > > > -- Noël GUILBERT http://www.noelguilbert.com/ http://www.sensiolabs.com http://www.symfony-project.com Sensio Labs Tél: +33 1 40 99 80 80 --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: sf_guard error: Fatal error: Allowed memory size of 16777216 bytes exhausted
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 wrote: > On Sep 12, 10:58 am, pcummins wrote: > > > It sounds like you need the date helper in your template. > > > > > I ssh to the server. I then followed the path listed in the error > message: > > Fatal error: Call to undefined function format_date() in /home/ > theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ > templates/_list_td_tabular.php on line 11 > > This folder: > > home/theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ > templates/ > > has these files: > > theesoci...@rome:~/public_html/cache/test/dev/modules/autoSfGuardUser/ > templates$ ls -al > total 96 > drwxrwxrwx 2 theesociety theesociety 4096 2009-09-11 13:30 . > drwxrwxrwx 5 theesociety theesociety 4096 2009-09-02 15:46 .. > -rw-r--r-- 1 theesociety theesociety 135 2009-09-11 13:30 _assets.php > -rw-r--r-- 1 theesociety theesociety 881 2009-09-11 13:30 > editSuccess.php > -rw-r--r-- 1 theesociety theesociety 967 2009-09-11 13:30 > _filters_field.php > -rw-r--r-- 1 theesociety theesociety 1589 2009-09-11 13:30 > _filters.php > -rw-r--r-- 1 theesociety theesociety 310 2009-09-11 13:30 > _flashes.php > -rw-r--r-- 1 theesociety theesociety 1283 2009-09-11 13:30 > _form_actions.php > -rw-r--r-- 1 theesociety theesociety 963 2009-09-11 13:30 > _form_field.php > -rw-r--r-- 1 theesociety theesociety 857 2009-09-11 13:30 > _form_fieldset.php > -rw-r--r-- 1 theesociety theesociety 0 2009-09-11 13:30 > _form_footer.php > -rw-r--r-- 1 theesociety theesociety 0 2009-09-11 13:30 > _form_header.php > -rw-r--r-- 1 theesociety theesociety 831 2009-09-11 13:30 _form.php > -rw-r--r-- 1 theesociety theesociety 1127 2009-09-11 13:30 > indexSuccess.php > -rw-r--r-- 1 theesociety theesociety 112 2009-09-11 13:30 > _list_actions.php > -rw-r--r-- 1 theesociety theesociety 548 2009-09-11 13:30 > _list_batch_actions.php > -rw-r--r-- 1 theesociety theesociety 248 2009-09-11 13:30 > _list_field_boolean.php > -rw-r--r-- 1 theesociety theesociety 0 2009-09-11 13:30 > _list_footer.php > -rw-r--r-- 1 theesociety theesociety 0 2009-09-11 13:30 > _list_header.php > -rw-r--r-- 1 theesociety theesociety 2276 2009-09-11 13:30 _list.php > -rw-r--r-- 1 theesociety theesociety 363 2009-09-11 13:30 > _list_td_actions.php > -rw-r--r-- 1 theesociety theesociety 138 2009-09-11 13:30 > _list_td_batch_actions.php > -rw-r--r-- 1 theesociety theesociety 435 2009-09-11 13:30 > _list_td_stacked.php > -rw-r--r-- 1 theesociety theesociety 492 2009-09-11 13:30 > _list_td_tabular.php > -rw-r--r-- 1 theesociety theesociety 80 2009-09-11 13:30 > _list_th_stacked.php > -rw-r--r-- 1 theesociety theesociety 2310 2009-09-11 13:30 > _list_th_tabular.php > -rw-r--r-- 1 theesociety theesociety 815 2009-09-11 13:30 > newSuccess.php > -rw-r--r-- 1 theesociety theesociety 1486 2009-09-11 13:30 > _pagination.php > > Both index.php and edit.php already had this at the top: > > > > So the Date helpers should have already been there. But since I was > getting an error, I opened up _list_td_tabular.php and I added this > in: > > > > But the error remains unchanged. > > Also, I'm working on files in the cache folder, so this will break > every time I do "symfony cc". While I'd be happy to get it working > just for now, I'd also be curious if people have ideas about to fix > this problem further upstream. > > > > > On Sep 12, 3:27 am, JakeBarnes wrote: > > > > The previous error has vancished. Now the view partly renders but dies > > > with this error: > > > > Fatal error: Call to undefined function format_date() in /home/ > > > theesociety/public_html/cache/test/dev/modules/autoSfGuardUser/ > > > templates/_list_td_tabular.php on line 8 > > > > I am not aware of any change that I've made that could effect what > > > functions are available to the sfGuardUser plugin, especially since it > > > is serving its administrative module from a cache file. Does anyone > > > know what could cause an error like this? > > > > On Sep 11, 1:38 pm, JakeBarnes wrote: > > > > > For the most part, everything on my site is working great, however, a > > > > bug has suddenly appeared regarding sfGuard. I have not made any > > > > changes to this module that I can recall. If I go here: > > > > > frontend_dev.php/sf_guard_user.html > > > > > Then I get this: > > > > > Fatal error: Allowed memory size of 16777216 bytes exhausted (tried to > > > > allocate 4864 bytes) in /usr/share/php/symfony/widget/ > > > > sfWidgetFormChoice.class.php on line 113 > > > > > The last entry in Subversion, regarding sfGuardPlugin, is this: > > > > > "Some base class has apparently been left out of Subversion. I can not > > > > easily find it. It is on the dev site but not on the live site. I'd > > > > like to find it and add it to the live site. " > > > > > That was 100 small revisions ago. No changes, just
[symfony-users] Re: PHP mail function not working
Hi, Shall I use PHP Mailer or Swift Mail ? Regards Deepak On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins 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 BHATIA > wrote: >> >> 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 wrote: >> > >> > Deepak, >> > >> > I shared your gripes. Swift mailer does not support TLS yet, which is >> > required for many exchange servers. PHPMailer does >> > >> > >> > >> > On Sep 17, 8:46 am, Eno wrote: >> >> On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: >> >> > How do we set "Fully Qualified Domain Name" the /etc/hosts file. >> >> >> >> Have you tried sending an email from the command line using the 'mail' >> >> command? If so, does it work? If not, then your server is not >> >> configured >> >> properly. >> >> >> >> -- >> > > >> > >> >> > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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] Is sfWeatherPlugin Unreliable?
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 you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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 Fields in sfGuardUser list filters
Hello... maybe it's to late but, did you find a solution to this problem? On 24 jul, 11:46, Denis Fingonnet 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) > > my_customer_id: > > type: integer > > email: > > type: string(255) > > relations: > > sfGuardUser: > > local: sf_guard_user_id > > foreign: id > > type: one > > foreignType: one > > MyCustomer: > > local: my_customer_id > > foreign: id > > type: one > > foreignType: many > > > MyCustomer: > > columns: > > name: > > type: string(255) > > I installed sfDoctrineGuardPlugin and enabled the sfGuardUser module in the > backend app. > > What I'm trying to do, without success, is to add a filter on the > my_customer.name field in the sfGuardUser list filters. > > Here is my sfGuardUserFormFilter class : > > > > > class sfGuardUserFormFilter extends PluginsfGuardUserFormFilter > > { > > public function configure() > > { > > $this->widgetSchema['sendit_customer'] = new > > sfWidgetFormDoctrineChoice(array('model' => 'SenditCustomer', 'add_empty' => > > true)); > > $this->validatorSchema['sendit_customer'] = new > > sfValidatorDoctrineChoice(array('required' => false, 'model' => > > 'SenditCustomer', 'column' => 'id')); > > } > > > public function getFields() > > { > > $retour = array_merge(array('sendit_customer', 'SenditCustomer'), > > parent::getFields()); > > return $retour; > > } > > > public function addSenditCustomerColumnQuery(Doctrine_Query $q, $field, > > $value) > > { > > if ($value) { > > $a = $q->getRootAlias(); > > $q->innerJoin($a . '.SenditUser su') > > ->andWhere('su.sendit_customer_id = ?', $value); > > } > > return $q; > > } > > > } > > It doesn't work and I can't find anything usefull on google. > Any ideas ? > > I think I can get the same result by creating a my_user module with the > admin generator. But I would like to know if I'm wrong anywhere or if it is > not possible (I doubt of it). > > Thanks by advance, > > -- > Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: changing the field content when using the executeEdit action
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 wrote: > Message at the bottom > > On Fri, Sep 18, 2009 at 12:02 AM, גולן (במילעל) wrote: > > > > > > > > > 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 the > > image field shows the big original image and i want it to show one of > > the thumbnails... > > icant change the the file_src property because when the form will be > > saved After editing the image will be saved to the wrong directory... > > any ideas ? > > > On Sep 17, 4:03 pm, Eno wrote: > > > 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 uploaded and i > > > > want it to use one of the thumbnails instead > > > > any ideas how to do that? > > > > i guess the problem starts because of the $post argument passed on the > > > > PostForm Construct but i don't know how to modify it > > > > Normally you would define a configure() method in the form class > > > (in lib/forms/) and put any changes to fields in there. > > > >http://www.symfony-project.org/forms/1_2/en/ > > > > -- > > I guess you could override your $this->form->save() method, but i dunno if > it would be the exactly what you need. > maybe a mix between changing "file_src" and save would help you out .. > > another thing that you might do is retrieve the original file and size it > from html template ... (it would generate some unnecesarry trafic, but it > will help you out to KISS the form ) > Sorry i cannot give you code sample atm ... > > 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- Hide quoted text - > > - Show quoted text - --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: publication project on the server - where place files ?
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, mini_alexander wrote: > 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 because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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] publication project on the server - where place files ?
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 because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@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: changing the field content when using the executeEdit action
Message at the bottom On Fri, Sep 18, 2009 at 12:02 AM, גולן (במילעל) wrote: > > 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 the > image field shows the big original image and i want it to show one of > the thumbnails... > icant change the the file_src property because when the form will be > saved After editing the image will be saved to the wrong directory... > any ideas ? > > On Sep 17, 4:03 pm, Eno wrote: > > 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 uploaded and i > > > want it to use one of the thumbnails instead > > > any ideas how to do that? > > > i guess the problem starts because of the $post argument passed on the > > > PostForm Construct but i don't know how to modify it > > > > Normally you would define a configure() method in the form class > > (in lib/forms/) and put any changes to fields in there. > > > > http://www.symfony-project.org/forms/1_2/en/ > > > > -- > > > I guess you could override your $this->form->save() method, but i dunno if it would be the exactly what you need. maybe a mix between changing "file_src" and save would help you out .. another thing that you might do is retrieve the original file and size it from html template ... (it would generate some unnecesarry trafic, but it will help you out to KISS the form ) Sorry i cannot give you code sample atm ... 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-users@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: changing the field content when using the executeEdit action
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 the image field shows the big original image and i want it to show one of the thumbnails... icant change the the file_src property because when the form will be saved After editing the image will be saved to the wrong directory... any ideas ? On Sep 17, 4:03 pm, Eno wrote: > 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 uploaded and i > > want it to use one of the thumbnails instead > > any ideas how to do that? > > i guess the problem starts because of the $post argument passed on the > > PostForm Construct but i don't know how to modify it > > Normally you would define a configure() method in the form class > (in lib/forms/) and put any changes to fields in there. > > http://www.symfony-project.org/forms/1_2/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-users@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: yml parse error on running upgrade1.3
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 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: > > > > > > > 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 the following error: > > > Unable to parse file "MyProject/plugins/sfDoctrineApplyPlugin/modules/ > > sfApply/validate/apply.yml": Unable to parse line 9 ( msg: "You must > > choose a username. Example: bob523"). > > > I couldn't find anything wrong with the yml file (pasted below). > > Please help!!! > > > fillin: > > enabled: true > > param: > > name: sf_apply_apply > > > fields: > > username: > > required: true > > msg: "You must choose a username. Example: bob523" > > sfStringValidator: > > min: 4 > > min_error: "Your username must be at least four characters > > long." > > max: 16 > > max_error: "Your username must be 16 characters or less." > > email: > > required: true > > msg: "You must provide a valid and complete email address in > > order to participate. Example: exam...@example.com" > > sfEmailValidator: > > strict: true > > email_error: "You must provide a valid and complete email > > address in order to participate. Example: exam...@example.com" > > password: > > required: true > > msg: "You must choose a password." > > sfStringValidator: > > min: 6 > > min_error: "Your password must be at least six characters long." > > max: 128 > > max_error: "Your password must be 128 characters or less." > > fullname: > > required: true > > msg: "You must provide your full name so that email can be > > successfully delivered." > > sfStringValidator: > > min: 6 > > min_error: "Your full name must be at least six characters > > long." > > max: 128 > > max_error: "Your full name must be 128 characters or less." > > validators: > > emailValidator: > > class: sfEmailValidator > > strict: true > > -- > 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-users@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: Using symfony 1.2 validators
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 wrote: > > 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 scheme? > > 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-users@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: PHP mail function not working
Swiftmail uses sendmail and mail as well. On Thu, Sep 17, 2009 at 11:37 PM, Patrick Cummins 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 BHATIA > wrote: >> >> 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 wrote: >> > >> > Deepak, >> > >> > I shared your gripes. Swift mailer does not support TLS yet, which is >> > required for many exchange servers. PHPMailer does >> > >> > >> > >> > On Sep 17, 8:46 am, Eno wrote: >> >> On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: >> >> > How do we set "Fully Qualified Domain Name" the /etc/hosts file. >> >> >> >> Have you tried sending an email from the command line using the 'mail' >> >> command? If so, does it work? If not, then your server is not >> >> configured >> >> properly. >> >> >> >> -- >> > > >> > >> >> > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: PHP mail function not working
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 wrote: > > 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 wrote: > > > > Deepak, > > > > I shared your gripes. Swift mailer does not support TLS yet, which is > > required for many exchange servers. PHPMailer does > > > > > > > > On Sep 17, 8:46 am, Eno wrote: > >> On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: > >> > How do we set "Fully Qualified Domain Name" the /etc/hosts file. > >> > >> Have you tried sending an email from the command line using the 'mail' > >> command? If so, does it work? If not, then your server is not configured > >> properly. > >> > >> -- > > > > > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: Calendar plugin
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 wrote: > Hi Guys, > > I did not receive any reply to my previous post on Calendar plug-in. Can any > one help me in integrating. > > -- > Regards & Thanks, > Rajesh.Kodali > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: PHP mail function not working
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 wrote: > > Deepak, > > I shared your gripes. Swift mailer does not support TLS yet, which is > required for many exchange servers. PHPMailer does > > > > On Sep 17, 8:46 am, Eno wrote: >> On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: >> > How do we set "Fully Qualified Domain Name" the /etc/hosts file. >> >> Have you tried sending an email from the command line using the 'mail' >> command? If so, does it work? If not, then your server is not configured >> properly. >> >> -- > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: PHP mail function not working
Deepak, I shared your gripes. Swift mailer does not support TLS yet, which is required for many exchange servers. PHPMailer does On Sep 17, 8:46 am, Eno wrote: > On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: > > How do we set "Fully Qualified Domain Name" the /etc/hosts file. > > Have you tried sending an email from the command line using the 'mail' > command? If so, does it work? If not, then your server is not configured > properly. > > -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: Calendar plugin
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 about the same. Also I may use the sendmail or mail to send the ICS information to the Microsoft Calender. The example of same is given below mailto:train...@corporate.com\n";; $messaje .= "Location:" . $location . "\n"; $messaje .= "UID:04008200E00074C5B7101A82E0080006FC30E6 C39DC004CA782E0C002E01A81\n"; $messaje .= "SEQUENCE:0\n"; $messaje .= "DTSTAMP:".date('Ymd').'T'.date('His')."\n"; $messaje .= "END:VEVENT\n"; $messaje .= "END:VCALENDAR\n"; $headers .= $messaje; mail($to, $subject, $message, $headers); ?> On Thu, Sep 17, 2009 at 8:12 PM, Rajesh Kodali wrote: > 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 > wrote: >> >> Hi, >> >> Is it compatible with Microsoft Outlook Calender ? >> >> Does it take Microsoft Outlook calender to .ics file ? >> >> Regards >> >> Deepak Bhatia >> >> On Fri, Sep 4, 2009 at 9:13 PM, Rajesh Kodali >> wrote: >> > Hi, >> > >> > We have tried and integrated http://www.k5n.us/webcalendar.php to >> > symfony, >> > though could not succeed 100% we hope to completely integrate in a >> > week's >> > time. So I was trying to find out if any one have already tried this >> > before >> > >> > On Fri, Sep 4, 2009 at 9:03 PM, Richtermeister wrote: >> >> >> >> Hey Rajesh, >> >> >> >> I guess the answer is that it's not available. Doesn't seem to be >> >> amongst the official plugins, and nobody came forward with one.. >> >> Time to shine and build it ;) >> >> >> >> Daniel >> >> >> >> >> >> On Sep 4, 8:02 am, Rajesh Kodali wrote: >> >> > I am looking at full scale calendar plug in with ical compliance. >> >> > >> >> > On Fri, Sep 4, 2009 at 8:21 PM, DEEPAK BHATIA >> >> > wrote: >> >> > >> >> > >> >> > >> >> > >> >> > >> >> > > Hi, >> >> > >> >> > > I have used Yahoo user interface for the same. >> >> > >> >> > >http://developer.yahoo.com/yui/ >> >> > >> >> > > Regards >> >> > >> >> > > Deepak >> >> > >> >> > > On Fri, Sep 4, 2009 at 8:13 PM, Rajesh >> >> > > Kodali >> >> > > wrote: >> >> > > > Hi Guys, >> >> > >> >> > > > I did not receive any reply to my previous post on Calendar >> >> > > > plug-in. >> >> > > > Can >> >> > > any >> >> > > > one help me in integrating. >> >> > >> >> > > > -- >> >> > > > Regards & Thanks, >> >> > > > Rajesh.Kodali >> >> > >> >> > -- >> >> > Regards & Thanks, >> >> > Rajesh.Kodali >> >> >> > >> > >> > >> > -- >> > Regards & Thanks, >> > Rajesh.Kodali >> > >> > > >> > >> >> > > > > -- > Regards & Thanks, > Rajesh.Kodali > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: Calendar plugin
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 wrote: > > Hi, > > Is it compatible with Microsoft Outlook Calender ? > > Does it take Microsoft Outlook calender to .ics file ? > > Regards > > Deepak Bhatia > > On Fri, Sep 4, 2009 at 9:13 PM, Rajesh Kodali > wrote: > > Hi, > > > > We have tried and integrated http://www.k5n.us/webcalendar.php to > symfony, > > though could not succeed 100% we hope to completely integrate in a week's > > time. So I was trying to find out if any one have already tried this > before > > > > On Fri, Sep 4, 2009 at 9:03 PM, Richtermeister wrote: > >> > >> Hey Rajesh, > >> > >> I guess the answer is that it's not available. Doesn't seem to be > >> amongst the official plugins, and nobody came forward with one.. > >> Time to shine and build it ;) > >> > >> Daniel > >> > >> > >> On Sep 4, 8:02 am, Rajesh Kodali wrote: > >> > I am looking at full scale calendar plug in with ical compliance. > >> > > >> > On Fri, Sep 4, 2009 at 8:21 PM, DEEPAK BHATIA > >> > wrote: > >> > > >> > > >> > > >> > > >> > > >> > > Hi, > >> > > >> > > I have used Yahoo user interface for the same. > >> > > >> > >http://developer.yahoo.com/yui/ > >> > > >> > > Regards > >> > > >> > > Deepak > >> > > >> > > 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 > >> > > any > >> > > > one help me in integrating. > >> > > >> > > > -- > >> > > > Regards & Thanks, > >> > > > Rajesh.Kodali > >> > > >> > -- > >> > Regards & Thanks, > >> > Rajesh.Kodali > >> > > > > > > > > -- > > Regards & Thanks, > > Rajesh.Kodali > > > > > > > > > > > -- Regards & Thanks, Rajesh.Kodali --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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] Using symfony 1.2 validators
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 scheme? 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-users@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: display form error message
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 following: - Single Input Field (for password retrieval) - StringValidator checks if the field is empty and outputs the right error message - but after this (form->isValid) I have to check if the entered string can be found in the database - if it can't be found, I would like to put a custom error message on the form. And here is the problem... Regards Mario Gaida On 4 Sep., 09:50, Eno wrote: > On Fri, 4 Sep 2009, Avani wrote: > > I m using 1.1 !!! > > > So, wht should I do for displaying my error message?? > > Have you read the forms chapter of the book? If you have, then you may > have noticed the note at the start of the forms chapter directing you to > read the symfony Forms in Action book if you are not using 1.0: > > http://www.symfony-project.org/forms/1_2/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-users@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: display form error message (SOLVED)
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 validator $this->addMessage('my_error', '"%value%" caused an error.'); $this->addOption('my_error'); } public function doClean($value) { // first, call the sfValidatorString method... parent::doClean($value); // here, do you own validation ... // if validation fails, throw your exception... if ($this->hasOption('my_error') && ...- your validation result - ...) { throw new sfValidatorError($this, 'my_error', array('value' => $value, 'my_error' => $this->getOption('my_error'))); } } // give the value back return $value; } 3. Now put the validator in your form class: $this->setValidators(array('myfield' => new sfMyValidator(array ('required' => true, 'my_error' => true), array('required' => 'Please enter something.'; This should do the trick. The isValid() function now checks your extended conditions. Regards Mario Gaida On 4 Sep., 09:50, Eno wrote: > On Fri, 4 Sep 2009, Avani wrote: > > I m using 1.1 !!! > > > So, wht should I do for displaying my error message?? > > Have you read the forms chapter of the book? If you have, then you may > have noticed the note at the start of the forms chapter directing you to > read the symfony Forms in Action book if you are not using 1.0: > > http://www.symfony-project.org/forms/1_2/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-users@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: Doctrine versionable behavior: how to ignore some fields change?
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 > autoincrement: true > last_name: > type: string(127) > notnull: true > to_check: > type:boolean > default: false > notnull: false > > When the "last_name" field is modified, I don't want to version it. > > How to do that? > -- > Nicolas CHARLOT > http://www.isics.fr Up -- Nicolas CHARLOT http://www.isics.fr --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: help
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 wrote: > 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 wrote: > >> well i am working in framework symfony and my database in informix but a >> don't know conecting to informix on symfony , i want to example or >> asessorie , please help me >> >> On Wed, Sep 16, 2009 at 2:17 AM, Alexandru-Emil Lupu < >> gang.al...@gmail.com> wrote: >> >>> Could you be more specific? >>> >>> >>> >>> On Wed, Sep 16, 2009 at 3:13 AM, Gabriel Guzman wrote: >>> please healpme i need to install symfony with informix but a cannot install >>> >>> >>> -- >>> 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 >>> >>> >>> >>> >>> >> >> >> > > > -- > Gareth McCumskey > http://garethmccumskey.blogspot.com > twitter: @garethmcc > > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: help
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 too? http://php.morva.net/manual/en/ref.pdo-informix.php -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: changing the field content when using the executeEdit action
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 uploaded and i > want it to use one of the thumbnails instead > any ideas how to do that? > i guess the problem starts because of the $post argument passed on the > PostForm Construct but i don't know how to modify it Normally you would define a configure() method in the form class (in lib/forms/) and put any changes to fields in there. http://www.symfony-project.org/forms/1_2/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-users@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: Performance optimization!HELP!!
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 always going to be the case if you are replacing joins with multiple queries that does the same thing. You're replacing in-memory and highly optimized database code with multiple trips over the wire (even localhost has a delay) plus query parsing plus result set parsing plus object hydration. Reducing joins only works in a handful of special cases like: 1) denormalize the data so you don't need to join to return the same result set, 2) if you can get the same result set by skipping a join, 3) you can eliminate some data from the result set to remove a join. -- 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-users@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: yml parse error on running upgrade1.3
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 true/false instead of on/off. > > However, the upgrade1.3 program encountered a problem parsing > validation yml (of sfDoctrineApplyPlugin) with the following error: > > Unable to parse file "MyProject/plugins/sfDoctrineApplyPlugin/modules/ > sfApply/validate/apply.yml": Unable to parse line 9 ( msg: "You must > choose a username. Example: bob523"). > > I couldn't find anything wrong with the yml file (pasted below). > Please help!!! > > > fillin: > enabled: true > param: >name: sf_apply_apply > > fields: > username: >required: true > msg: "You must choose a username. Example: bob523" >sfStringValidator: > min: 4 > min_error: "Your username must be at least four characters > long." > max: 16 > max_error: "Your username must be 16 characters or less." > email: >required: true > msg: "You must provide a valid and complete email address in > order to participate. Example: exam...@example.com" >sfEmailValidator: > strict: true > email_error: "You must provide a valid and complete email > address in order to participate. Example: exam...@example.com" > password: >required: true > msg: "You must choose a password." >sfStringValidator: > min: 6 > min_error: "Your password must be at least six characters long." > max: 128 > max_error: "Your password must be 128 characters or less." > fullname: >required: true > msg: "You must provide your full name so that email can be > successfully delivered." >sfStringValidator: > min: 6 > min_error: "Your full name must be at least six characters > long." > max: 128 > max_error: "Your full name must be 128 characters or less." > validators: > emailValidator: >class: sfEmailValidator >strict: true > > > > > -- 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-users@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: PHP mail function not working
On Thu, 17 Sep 2009, DEEPAK BHATIA wrote: > How do we set "Fully Qualified Domain Name" the /etc/hosts file. Have you tried sending an email from the command line using the 'mail' command? If so, does it work? If not, then your server is not configured properly. -- --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: Ajax queuing behaviour driving us mad
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 own storage class. Only when the action/view ends does it add all that data to storage, which is great performance wise. Problem is if you call session_write_close() anywhere in your action or view, symfony cannot write the session data you set. Instead call $this->getUser()->shutdown() which forces symfony to write all outstanding data into session and then symfony itself calls session_write_close to unlock session files. Just thought I'd share because we ran into an issue using session_write_close diretly and now switching to using the shutdown method everything runs great On Tue, Sep 15, 2009 at 2:47 PM, Gareth McCumskey wrote: > Well we actually "fixed" the solution by using session_write_close() at the > beginning of the actions responsible for pulling data from the server and > that DO NOT write session data so that it will unlock session as soon as the > controller passes execution to the action for that ajax call. THis way all > ajax calls are sequential until they hit session_write_close() and then they > release the session lock for the next ajax request to do its thing until it > too hits session_write_close(). > > WARNING for anyone wanting to use this as well. Make sure that after you > call session_write_close() there are no calls to symfony's session > management functions to write session data as this may cause some serious > issues with data concurrency. > > > On Tue, Sep 15, 2009 at 2:18 PM, Sid Bachtiar wrote: > >> >> It's not Symfony, it's PHP session thing. But this issue is not unique >> to PHP either. >> >> >> > Basically we have a few div's on one page that needs to be populated >> >> > with >> >> > the ajax returns. What seems to be happening though is instead of >> each >> >> You really need to just have one ajax call per event (e.g.: page load) >> >> On Wed, Sep 16, 2009 at 12:11 AM, Gareth McCumskey >> wrote: >> > Thanks, looking at that link it seems to be exactly what we are >> > experiencing. Would you know a way we could turn that session locking >> off >> > within symfony? I am not too fond of the example given in that link. >> > >> > On Tue, Sep 15, 2009 at 1:57 PM, Sid Bachtiar >> > wrote: >> >> >> >> It is most likely due to PHP session locking: >> >> http://nz2.php.net/manual/en/ref.session.php#64525 >> >> >> >> On Tue, Sep 15, 2009 at 11:45 PM, Gareth McCumskey < >> gmccums...@gmail.com> >> >> wrote: >> >> > Hi all, >> >> > >> >> > We have encountered an odd problem that I believe should not be >> >> > happening. >> >> > Let me try and describe it as best I can. >> >> > >> >> > We have a symfony developed application using the Prototype >> javascript >> >> > library. One of our pages (and others) make multiple ajax calls on >> load. >> >> > Basically we have a few div's on one page that needs to be populated >> >> > with >> >> > the ajax returns. What seems to be happening though is instead of >> each >> >> > ajax >> >> > call going to the server at the same time, we have the ajax calls >> >> > queuing. >> >> > What this means is that if one ajax call takes a long time to return >> a >> >> > result (because of server load for example) all the other ajax calls >> >> > wait >> >> > until that item has recieved its response before they make their >> >> > requests to >> >> > the server. >> >> > >> >> > Even if, while these ajax elements are waiting for a response, the >> user >> >> > clicks another link to another part of the site, the browser will not >> >> > load >> >> > the new page until all the ajax calls are complete. >> >> > >> >> > We have thought of a number of possible causes but are struggling to >> >> > figure >> >> > out where this may happen. Is it the ajax itself that only allows one >> >> > connection (client-side), the apache server limiting the number of >> >> > connections per client, the PHP server only allowing processing of >> one >> >> > request per client etc. >> >> > >> >> > Any insight to this problem would be greatly appreciated. >> >> > >> >> > -- >> >> > Gareth McCumskey >> >> > http://garethmccumskey.blogspot.com >> >> > twitter: @garethmcc >> >> > >> >> > > >> >> > >> >> >> >> >> >> >> >> -- >> >> Blue Horn Ltd - System Development >> >> http://bluehorn.co.nz >> >> >> >> >> > >> > >> > >> > -- >> > Gareth McCumskey >> > http://garethmccumskey.blogspot.com >> > twitter: @garethmcc >> > >> > > >> > >> >> >> >> -- >> Blue Horn Ltd - System Development >> http://bluehorn.co.nz >> >> >> >> > > > -- > Gareth McCumskey > http://garethmccumskey.blogspot.com > twitter: @garethmcc > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~-~--~~~---~--~~ You received this message because y
[symfony-users] Re: Sending ICS information with Swift Mail
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" group. To post to this group, send email to symfony-users@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: Performance optimization!HELP!!
> 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: @garethmcc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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] Sending ICS information with Swift Mail
Can we send the ICS information with the swift mail ? mailto:train...@corporate.com\n";; $messaje .= "Location:" . $location . "\n"; $messaje .= "UID:04008200E00074C5B7101A82E0080006FC30E6 C39DC004CA782E0C002E01A81\n"; $messaje .= "SEQUENCE:0\n"; $messaje .= "DTSTAMP:".date('Ymd').'T'.date('His')."\n"; $messaje .= "END:VEVENT\n"; $messaje .= "END:VCALENDAR\n"; $headers .= $messaje; mail($to, $subject, $message, $headers); ?> --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: Performance optimization!HELP!!
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 wrote: > > 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 are properly indexed > 3. Minimise the number of queries with joins > > Anything after that starts to get increasingly more time consuming to > implement for smaller and smaller gains. > > If you're using multiple web servers, look at using memcached for > session storage and for the view cache. Do not be tempted to share via > NFS as it will kill your performance. > > > > > On Sep 17, 4:40 am, Shi Zhuguo wrote: > > 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 optimizations with Symfony > > and Doctrine. Any suggestions are welcome! > > > > Help me and thanks in advance~ > > > -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: Performance optimization!HELP!!
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 are properly indexed 3. Minimise the number of queries with joins Anything after that starts to get increasingly more time consuming to implement for smaller and smaller gains. If you're using multiple web servers, look at using memcached for session storage and for the view cache. Do not be tempted to share via NFS as it will kill your performance. On Sep 17, 4:40 am, Shi Zhuguo wrote: > 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 optimizations with Symfony > and Doctrine. Any suggestions are welcome! > > Help me and thanks in advance~ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: PHP mail function not working
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 wrote: > > 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] http://fabien.potencier.org/article/33/swift-mailer-takeover > > On Thu, Sep 17, 2009 at 09:16, DEEPAK BHATIA wrote: >> >> 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 is >> >> > $to = "deepak.bha...@nechclst.in"; >> $subject = "Training Registration"; >> $message = "Thank you for participating in the Technical Certification >> training program.\n\n"; >> mail($to, $subject, $message); >> ?> >> >> > >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: PHP mail function not working
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 Fási wrote: > > 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] http://fabien.potencier.org/article/33/swift-mailer-takeover > > On Thu, Sep 17, 2009 at 09:16, DEEPAK BHATIA wrote: >> >> 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 is >> >> > $to = "deepak.bha...@nechclst.in"; >> $subject = "Training Registration"; >> $message = "Thank you for participating in the Technical Certification >> training program.\n\n"; >> mail($to, $subject, $message); >> ?> >> >> > >> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: PHP mail function not working
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] http://fabien.potencier.org/article/33/swift-mailer-takeover On Thu, Sep 17, 2009 at 09:16, DEEPAK BHATIA wrote: > > 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 is > > $to = "deepak.bha...@nechclst.in"; > $subject = "Training Registration"; > $message = "Thank you for participating in the Technical Certification > training program.\n\n"; > mail($to, $subject, $message); > ?> > > > > --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: help
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: informix:dbname=DATABASENAME;host=DBSERVER and set the user:, password: etc directives as well as per the symfony documentation http://www.symfony-project.org/reference/1_2/en/07-Databases Hope that helps :) On Wed, Sep 16, 2009 at 11:52 PM, Gabriel Guzman wrote: > well i am working in framework symfony and my database in informix but a > don't know conecting to informix on symfony , i want to example or > asessorie , please help me > > On Wed, Sep 16, 2009 at 2:17 AM, Alexandru-Emil Lupu > wrote: > >> Could you be more specific? >> >> >> >> On Wed, Sep 16, 2009 at 3:13 AM, Gabriel Guzman wrote: >> >>> >>> please healpme i need to install symfony with informix but a cannot >>> install >>> >>> >>> >> >> >> -- >> 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 >> >> >> >> >> > > > > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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] PHP mail function not working
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 is --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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: help
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 wrote: > well i am working in framework symfony and my database in informix but a > don't know conecting to informix on symfony , i want to example or > asessorie , please help me > > On Wed, Sep 16, 2009 at 2:17 AM, Alexandru-Emil Lupu > wrote: > >> Could you be more specific? >> >> >> >> On Wed, Sep 16, 2009 at 3:13 AM, Gabriel Guzman wrote: >> >>> >>> please healpme i need to install symfony with informix but a cannot >>> install >>> >>> >>> >> >> >> -- >> 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 >> >> >> >> >> > > > > -- Gareth McCumskey http://garethmccumskey.blogspot.com twitter: @garethmcc --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To 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 -~--~~~~--~~--~--~---