[symfony-users] Duplicate entry exception when save a form with embedI18n
Hello, I have a problem today when I try to save a form with two i18n embed forms. # Context : symfony : 1.3.0-DEV php: 5.2.6-3ubuntu4.2 SERVER_SOFTWARE: 'Apache/2.2.11 (Ubuntu) PHP/5.2.6-3ubuntu4.2 with Suhosin-Patch' os: 'Linux tux 2.6.28-16-generic #55-Ubuntu SMP Tue Oct 20 19:48:24 UTC 2009 i686' # The error message : SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry '4-fr' for key 1 # Submited data to that form (parameter of bindAndSave) : Array ( [en] = Array ( [name] = Nom_en ) [fr] = Array ( [name] = Nom_fr ) [id] = 4 ) # When I'm looking in the save process, I noticed that the object take theses values just after the doUpdateObject method (sfFormDoctrine, line 129): Array ( [id] = 4 [created_at] = 2009-10-26 15:34:11 [updated_at] = 2009-10-28 10:06:26 [Translation] = Array ( [en] = Array ( [id] = 4 [name] = [lang] = en ) [fr] = Array ( [id] = 4 [name] = [lang] = fr ) [fr_FR] = Array ( [id] = 4 [name] = [lang] = fr_FR ) ) ) Two problems : 1. Why fr_FR array appears ? 2. Why traduction (name) are empty ? # The form declaration : classTotoForm extends BaseTotoForm { public function configure() { $this-embedI18n(array('en', 'fr')); } } # The object declaration in the schema.yml Toto: actAs: Timestampable: I18n: fields: [name] columns: name: string(255) --- thanks for your support. Cordialy, David BOUCHÉ --~--~-~--~~~---~--~~ 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] How to manage big uploads
When it comes to video or audio files, uploading via http forms does not seem to be the best approach: timeouts, size limits, etc... usually get on the way. How would you manage big (+20MB) or batch uploads? I guess the best solution would be a client-side code either in java, flash o silverlight using FTP to upload the files and server-code to process the uploaded files if needed, but I'd like to know how people are solving this issue. --~--~-~--~~~---~--~~ 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] sfWidgetFormPropelJQueryAutocompleter setdefault
hi there, i am using a sfWidgetFormPropelJQueryAutocompleter which works perfect. i am using setdefault function but does not work, anyone knows how to solve this? (i was using before sfWidgetFormTextarea and setDefault worked perfectly) 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] Dependency Injection Service Container: different environments
Hi, I have a problem where I am not sure how to best structure this using the service container yaml syntax. Take for example this configuration for production: services: db: class:api_db_doctrine arguments: dsn: mysql://infocube:l...@localhost/infocube options: models_path: localinc/api/model name: default charset: utf8 log: false shared: true Should look like the following during development: services: writer: class:Zend_Log_Writer_apiFirebug arguments: [] shared: true logger: class:Zend_Log arguments: [...@writer] shared: true log: class:api_log arguments: [...@logger, DEBUG, true] shared: true db_logger: class:api_db_doctrine_log arguments: [...@log] shared: true db: class:api_db_doctrine arguments: dsn: mysql://t...@localhost/test options: models_path: localinc/api/model name: default charset: utf8 log: @db_logger shared: true --- Now what I obviously want is to keep the differences to a minimum. So ideally I would do a default service definition like so: # parameters.yml parameters: db_logger: false #services.yml imports: parameters: { resource: parameters.yml, class: sfServiceContainerLoaderFileYaml } services: db: class:api_db_doctrine arguments: dsn: mysql://infocube:l...@localhost/infocube options: models_path: localinc/api/model name: default charset: utf8 log: %db_logger% shared: true Now for the development setup I would have something like: # services_dev.yml imports: default: { resource: services, class: sfServiceContainerLoaderFileYaml } services: writer: class:Zend_Log_Writer_apiFirebug arguments: [] shared: true logger: class:Zend_Log arguments: [...@writer] shared: true log: class:api_log arguments: [...@logger, DEBUG, true] shared: true db_logger: class:api_db_doctrine_log arguments: [...@log] shared: true Now how do I get @db_logger into the services.yml definition? Not sure what the best approach is .. maybe I need to move the loading of the parameters.yml file out of the services.yml and into my initialization code that makes the sfServiceContainer instance. As in decide based on the environment what services and what parameters yaml to load. regards, Lukas Kahwe Smith m...@pooteeweet.org --~--~-~--~~~---~--~~ 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 user class
hi alexandru... my question 1) was exactly on that class: the call (BasesfGuardAuthActions.class.php: 45) is all lowercase (sign()) but the sfGuardSecurityUser method as the capital i (signIn())... just another question i didn't find with google: what's the difference between the sfValidator and the sfValidatorBase classes? the former is the only one that appears in the symfony documentation and the latter is the only one used in the sfGuardPlugin plugin. thank you... On Oct 27, 10:52 pm, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Hi! 2) - in the validator, check what is happening . You shall see that the validator is ooverloading the post with a user key, that is the sfGuardUser ( plugins/sfGuardPlugin/lib/validator/ ) 1) that signin method is avalilable in the sfGuardSecurity user or so ( plugins/sfGuardPlugin/lib/model/user/ Alecs On Tue, Oct 27, 2009 at 10:14 PM, lorenx lor...@gmail.com wrote: hi frank, i'm studing the sfGuardPlugin... just one question: i cannot understand the call $this-getUser()-signin($values['user'], array_key_exists('remember', $values) ? $values['remember'] : false); (BasesfGuardAuthActions.class.php: 45) i guess that it referes to the signin method of the sfGuardSecurityUser class public function signIn($user, $remember = false, $con = null) (sfGuardSecurityUser.class.php: 78) but: 1. the method has the capital i (signIn) while the BasesfGuardAuthActions call is lowercase; 2. the passed $values['user'] is the whole user object? i thought that the form values were username and password... thanks, again... On Oct 27, 12:44 am, lorenx lor...@gmail.com wrote: ok, sure... so i guess that all the signin code should be here, in myUser class, and not in the signin module... anyway, i'll have a deep look at the sfGuardSecurityUser.class.php code. thanks very much for your time! On Oct 27, 12:35 am, Frank Stelzer d...@bleedingmoon.de wrote: look in the signin method, this attribute is saved there: $this-setAttribute('user_id', $user-getId(), 'sfGuardSecurityUser'); Ok i think the rest is really search and find stuff and should not be discussed on this public list furthermore. Am 27.10.2009 um 00:28 schrieb lorenx: don't you think you've finished with me! :P $id = $this-getAttribute('id', null, 'MyCustomUser') does not return any id... :( i've even tried: $this-getAttribute('id', null, 'sfGuardSecurityUser') and $this-getAttribute('user_id', null, 'sfGuardSecurityUser') On Oct 27, 12:11 am, Frank Stelzer d...@bleedingmoon.de wrote: eureka! :) Am 27.10.2009 um 00:06 schrieb lorenx: do you mean somethig like this? class myUser extends sfBasicSecurityUser { protected $user = null; public function getCustomUser() { if (!$this-user $id = $this-getAttribute('id', null, 'MyCustomUser')) { $this-user = MyCustomUserPeer::retrieveByPk($id); } return $this-user; } } On Oct 26, 11:57 pm, Frank Stelzer d...@bleedingmoon.de wrote: Yes Add a method in your myUser class for retrieving an according and valid instance of your guard user entry and thats it (see getGuardUser). ... guard user is your custom user. Am 26.10.2009 um 23:55 schrieb lorenx: mmm, but i don't have any getCustomUser() method; it seems that it should return a MyCustomUser instance... On Oct 26, 11:45 pm, Frank Stelzer d...@bleedingmoon.de wrote: You do not have to re-implement those methods, as your model class has it already done. You cann access them via: $this-getUser()-getCustomUser()-getEmail(); or add wrapper methods in your myUser class: myUser: --- public function getEmail() { return $this-getCustomUser()-getEmail(); } - Frank Am 26.10.2009 um 23:41 schrieb lorenx: 3. Add a getCustomUser method to your myUser class and generate the mentioned link in this way. sorry but... if i need a (custom) getUsername() or a getEmail() method, do i need to re-implement these methods from scratch in myUser class although i already have them in MyCustomUser class? could i link somehow those methods to the ones generated in MyCustomUser class? how? sorry but it seems to me this could be the last step to partially understand the process... -- 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] Re: How to manage big uploads
Every web application has a limit on upload else your server could be crashed for no space On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote: When it comes to video or audio files, uploading via http forms does not seem to be the best approach: timeouts, size limits, etc... usually get on the way. How would you manage big (+20MB) or batch uploads? I guess the best solution would be a client-side code either in java, flash o silverlight using FTP to upload the files and server-code to process the uploaded files if needed, but I'd like to know how people are solving this issue. --~--~-~--~~~---~--~~ 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] Netbeans Status: Oracle speaks
Be carefull, user of Netbeans http://java.dzone.com/news/oracle-reveals-plans-netbeans *NetBeans* Oracle intends to provide NetBeans as an additional open source option to complement JDeveloper and Oracle Enterprise Pack for Eclipse. Oracle makes it clear however, that JDeveloper is still Oracle's strategic development tool for Oracle Fusion and future enterprise applications. Oracle says that JDeveloper, Enterprise Pack, and NetBeans will all be options for pure Java and Java EE development. -- Cr. Puentes Diaz MP 10.12726.9 Córdoba - Argentina www.puentesdiaz.com.ar/blog/ www.puentesdiaz.com.ar/blog/novedades www.twitter.com/puentesdiaz Linux User n° 441474 Ubuntu/Symfony/Eclipse Rocks! Sign for Free License for Project Zero http://www.petitiononline.com/zerogpl/ --~--~-~--~~~---~--~~ 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] sfDoctrineApplyPlugin version 1.1.0: a significant security improvement, and a change of mailer
Version 1.1.0 of sfDoctrineApplyPlugin has been released. Two important changes you need to understand before upgrading: 1. A security improvement. Previously usernames and full names were not validated apart from their length. Now usernames are required to contain only word characters (letters, digits and underscores), and full names may still contain a wide range of characters but never these: | The first three should be self-explanatory: full names are now safe to echo unescaped. Many devs probably weren't doing that, but I suspect that most devs were echoing usernames unescaped (they are validated to be safe in most systems). So they will definitely want this upgrade. We have provided a task to clean up existing usernames and full names. This task produces a report to help you inform any users who need to be notified that their username has changed: ./symfony sfDoctrineApply:clean-names 2. sfDoctrineApplyPlugin now uses Zend Mail. We are using it because at the time we made the decision to switch, SwiftMail had not yet been taken under Fabien's wing, our other plugins already required Zend, SwiftMail 3.0 had been terminated and we didn't want to require two external libraries where one would do. This change requires a few modifications to your app.yml if you are specifying an alternate mailer. If you are using the default mailer you will not need to make changes, apart from installing Zend if you do not already have it (for instance, for search). Today, of course, we know that SwiftMail is blessed by Fabien and will be included in Symfony 1.3. So I understand if you find this change a little odd. However, you can easily override our use of Zend Mail by subclassing the sfApply controller class in your application. * * * Why did you forbid | in full names? We forbade | because it is part of our favorite microformat for lists of unambiguous full names in sfGuard apps: John Doe (jdoe) | Jane Smith (jsmith) | John Doe (jdoe2) This is handy when passing lists of users as form fields etc. and allows for nifty progressive enhancement stuff on the client side. -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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: sfDoctrineApplyPlugin version 1.1.0: a significant security improvement, and a change of mailer
Cool - great to see it ready for sf 1.3 On Wed, 28 Oct 2009 18:49:21 +0100, Tom Boutell t...@punkave.com wrote: Version 1.1.0 of sfDoctrineApplyPlugin has been released. Two important changes you need to understand before upgrading: 1. A security improvement. Previously usernames and full names were not validated apart from their length. Now usernames are required to contain only word characters (letters, digits and underscores), and full names may still contain a wide range of characters but never these: | The first three should be self-explanatory: full names are now safe to echo unescaped. Many devs probably weren't doing that, but I suspect that most devs were echoing usernames unescaped (they are validated to be safe in most systems). So they will definitely want this upgrade. We have provided a task to clean up existing usernames and full names. This task produces a report to help you inform any users who need to be notified that their username has changed: ./symfony sfDoctrineApply:clean-names 2. sfDoctrineApplyPlugin now uses Zend Mail. We are using it because at the time we made the decision to switch, SwiftMail had not yet been taken under Fabien's wing, our other plugins already required Zend, SwiftMail 3.0 had been terminated and we didn't want to require two external libraries where one would do. This change requires a few modifications to your app.yml if you are specifying an alternate mailer. If you are using the default mailer you will not need to make changes, apart from installing Zend if you do not already have it (for instance, for search). Today, of course, we know that SwiftMail is blessed by Fabien and will be included in Symfony 1.3. So I understand if you find this change a little odd. However, you can easily override our use of Zend Mail by subclassing the sfApply controller class in your application. * * * Why did you forbid | in full names? We forbade | because it is part of our favorite microformat for lists of unambiguous full names in sfGuard apps: John Doe (jdoe) | Jane Smith (jsmith) | John Doe (jdoe2) This is handy when passing lists of users as form fields etc. and allows for nifty progressive enhancement stuff on the client side. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ --~--~-~--~~~---~--~~ 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] Symfony output escaping in the templates of plugins
I write plugins which other people use in their Symfony apps. They might be using any of the possible escaping_strategy settings. I need a consistent way to access the escaped and non-escaped forms of the variables and request fields, REGARDLESS of that setting, because I don't want to force a particular setting on third-party devs but I don't want to fail to escape things properly either. The documentation says that $sf_data is only defined for certain escaping strategies. Writing this everyplace I need raw access: isset($sf_data) ? $sf_data-getRaw('foo') : $foo Is not practical. Neither is: isset($sf_data) ? $sf_data-get('foo') : htmlspecialchars($foo) In all the places where I DO want escaping. Is there a clean way to do this? Should I require users of my plugins to use the 'bc', 'on', 'or 'both' strategies and specifically refuse to support 'off'? This might not be too awful, since 'bc' is the default, but I'd hate to tell people they can't choose an escaping strategy of their choice in their own code for performance reasons, as the documentation says. Maybe I can specify an alternate escaping strategy on a per-module basis somehow? Any help appreciated, thanks! -- Tom Boutell P'unk Avenue 215 755 1330 punkave.com window.punkave.com --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To 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] Production routing vs. dev environment routing.
I've been stuck on this for quite some time and hope someone can help me. It's probably something simple that I am overlooking (and I hope it is) but I can't figure it out. I am integrating PayPal Payments Pro Recurring Billing using Express Checkout. I have already successfully integrated Recurring Billing using Direct Payment. Everything is working fine except I need certain parameters to process the payment after the user is directed back to my site from paypal. So I specify the return url to include those parameters like this $returnUrl = https://mysite/payment/param/$value/param2/$value2;; when paypal redirects to this url it appends a few parameters of it's own so I end up with something like this: https://mysite/payment/param/$value/param2/$value2?token=valuePayerID=value I wasn't sure if this would work, but it did just fine until I moved to my other testing server and tried it in the production environment instead of frontend_dev.php. Now I just get a 404 not found. But if I insert frontend_dev.php into the url it works fine. How can I get this to work in the production environment? Summary: Works: https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?token=valuePayerID=value Doesn't Work: https://mysite/payment/param/$value/param2/$value2?token=valuePayerID=value Thank you for you help, Zach --~--~-~--~~~---~--~~ 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: Production routing vs. dev environment routing.
1. Did you clear cache? ./symfony cc 2. Do you have mod_rewrite enabled on your production server? On Thu, Oct 29, 2009 at 8:56 AM, Zach zach...@gmail.com wrote: I've been stuck on this for quite some time and hope someone can help me. It's probably something simple that I am overlooking (and I hope it is) but I can't figure it out. I am integrating PayPal Payments Pro Recurring Billing using Express Checkout. I have already successfully integrated Recurring Billing using Direct Payment. Everything is working fine except I need certain parameters to process the payment after the user is directed back to my site from paypal. So I specify the return url to include those parameters like this $returnUrl = https://mysite/payment/param/$value/param2/$value2;; when paypal redirects to this url it appends a few parameters of it's own so I end up with something like this: https://mysite/payment/param/$value/param2/$value2?token=valuePayerID=value I wasn't sure if this would work, but it did just fine until I moved to my other testing server and tried it in the production environment instead of frontend_dev.php. Now I just get a 404 not found. But if I insert frontend_dev.php into the url it works fine. How can I get this to work in the production environment? Summary: Works: https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?token=valuePayerID=value Doesn't Work: https://mysite/payment/param/$value/param2/$value2?token=valuePayerID=value Thank you for you help, Zach -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Production routing vs. dev environment routing.
Thanks for the fast reply! 1. yes I did symfony cc 2. yes... I have RewriteEngine On in the .htaccess (that enables mod_rewrite right?) On Oct 28, 3:07 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: 1. Did you clear cache? ./symfony cc 2. Do you have mod_rewrite enabled on your production server? On Thu, Oct 29, 2009 at 8:56 AM, Zach zach...@gmail.com wrote: I've been stuck on this for quite some time and hope someone can help me. It's probably something simple that I am overlooking (and I hope it is) but I can't figure it out. I am integrating PayPal Payments Pro Recurring Billing using Express Checkout. I have already successfully integrated Recurring Billing using Direct Payment. Everything is working fine except I need certain parameters to process the payment after the user is directed back to my site from paypal. So I specify the return url to include those parameters like this $returnUrl = https://mysite/payment/param/$value/param2/$value2;; when paypal redirects to this url it appends a few parameters of it's own so I end up with something like this: https://mysite/payment/param/$value/param2/$value2?token=valuePayerI... I wasn't sure if this would work, but it did just fine until I moved to my other testing server and tried it in the production environment instead of frontend_dev.php. Now I just get a 404 not found. But if I insert frontend_dev.php into the url it works fine. How can I get this to work in the production environment? Summary: Works: https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?t... Doesn't Work: https://mysite/payment/param/$value/param2/$value2?token=valuePayerI... Thank you for you help, Zach -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Production routing vs. dev environment routing.
2. yes... I have RewriteEngine On in the .htaccess (that enables mod_rewrite right?) Not just there. Your apache web server must have it enabled. If you're on linux: sudo a2enmod rewrite then restart apache On Thu, Oct 29, 2009 at 9:23 AM, Zach zach...@gmail.com wrote: Thanks for the fast reply! 1. yes I did symfony cc 2. yes... I have RewriteEngine On in the .htaccess (that enables mod_rewrite right?) On Oct 28, 3:07 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: 1. Did you clear cache? ./symfony cc 2. Do you have mod_rewrite enabled on your production server? On Thu, Oct 29, 2009 at 8:56 AM, Zach zach...@gmail.com wrote: I've been stuck on this for quite some time and hope someone can help me. It's probably something simple that I am overlooking (and I hope it is) but I can't figure it out. I am integrating PayPal Payments Pro Recurring Billing using Express Checkout. I have already successfully integrated Recurring Billing using Direct Payment. Everything is working fine except I need certain parameters to process the payment after the user is directed back to my site from paypal. So I specify the return url to include those parameters like this $returnUrl = https://mysite/payment/param/$value/param2/$value2;; when paypal redirects to this url it appends a few parameters of it's own so I end up with something like this: https://mysite/payment/param/$value/param2/$value2?token=valuePayerI. .. I wasn't sure if this would work, but it did just fine until I moved to my other testing server and tried it in the production environment instead of frontend_dev.php. Now I just get a 404 not found. But if I insert frontend_dev.php into the url it works fine. How can I get this to work in the production environment? Summary: Works: https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?t. .. Doesn't Work: https://mysite/payment/param/$value/param2/$value2?token=valuePayerI. .. Thank you for you help, Zach -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Production routing vs. dev environment routing.
On Thu, 29 Oct 2009, Sid Bachtiar wrote: 2. yes... I have RewriteEngine On in the .htaccess (that enables mod_rewrite right?) Not just there. Your apache web server must have it enabled. If you're on linux: sudo a2enmod rewrite Just remember, a2enmod is Ubuntu/Debian specific - not all Linux distros are Debian-based. -- --~--~-~--~~~---~--~~ 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: Production routing vs. dev environment routing.
ok... so I ran phpinfo() just to check, and yes I do have mod_rewrite listed under the loaded modules. On Oct 28, 3:31 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: 2. yes... I have RewriteEngine On in the .htaccess (that enables mod_rewrite right?) Not just there. Your apache web server must have it enabled. If you're on linux: sudo a2enmod rewrite then restart apache On Thu, Oct 29, 2009 at 9:23 AM, Zach zach...@gmail.com wrote: Thanks for the fast reply! 1. yes I did symfony cc 2. yes... I have RewriteEngine On in the .htaccess (that enables mod_rewrite right?) On Oct 28, 3:07 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: 1. Did you clear cache? ./symfony cc 2. Do you have mod_rewrite enabled on your production server? On Thu, Oct 29, 2009 at 8:56 AM, Zach zach...@gmail.com wrote: I've been stuck on this for quite some time and hope someone can help me. It's probably something simple that I am overlooking (and I hope it is) but I can't figure it out. I am integrating PayPal Payments Pro Recurring Billing using Express Checkout. I have already successfully integrated Recurring Billing using Direct Payment. Everything is working fine except I need certain parameters to process the payment after the user is directed back to my site from paypal. So I specify the return url to include those parameters like this $returnUrl = https://mysite/payment/param/$value/param2/$value2;; when paypal redirects to this url it appends a few parameters of it's own so I end up with something like this: https://mysite/payment/param/$value/param2/$value2?token=valuePayerI. .. I wasn't sure if this would work, but it did just fine until I moved to my other testing server and tried it in the production environment instead of frontend_dev.php. Now I just get a 404 not found. But if I insert frontend_dev.php into the url it works fine. How can I get this to work in the production environment? Summary: Works: https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?t. .. Doesn't Work: https://mysite/payment/param/$value/param2/$value2?token=valuePayerI. .. Thank you for you help, Zach -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: Symfony output escaping in the templates of plugins
Use the sfOutputEscaper - it's smart enough to know if it's been escaped or not already and won't double escape. On Wed, 28 Oct 2009 19:52:46 +0100, Tom Boutell t...@punkave.com wrote: I write plugins which other people use in their Symfony apps. They might be using any of the possible escaping_strategy settings. I need a consistent way to access the escaped and non-escaped forms of the variables and request fields, REGARDLESS of that setting, because I don't want to force a particular setting on third-party devs but I don't want to fail to escape things properly either. The documentation says that $sf_data is only defined for certain escaping strategies. Writing this everyplace I need raw access: isset($sf_data) ? $sf_data-getRaw('foo') : $foo Is not practical. Neither is: isset($sf_data) ? $sf_data-get('foo') : htmlspecialchars($foo) In all the places where I DO want escaping. Is there a clean way to do this? Should I require users of my plugins to use the 'bc', 'on', 'or 'both' strategies and specifically refuse to support 'off'? This might not be too awful, since 'bc' is the default, but I'd hate to tell people they can't choose an escaping strategy of their choice in their own code for performance reasons, as the documentation says. Maybe I can specify an alternate escaping strategy on a per-module basis somehow? Any help appreciated, thanks! -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ --~--~-~--~~~---~--~~ 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: Production routing vs. dev environment routing.
On Wed, 28 Oct 2009, Zach wrote: ok... so I ran phpinfo() just to check, and yes I do have mod_rewrite listed under the loaded modules. Is your vhost configured to look at .htaccess files and allow directives in them? The AllowOverride directive (or something like that). On Oct 28, 3:31 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: 2. yes... I have RewriteEngine On in the .htaccess (that enables mod_rewrite right?) Not just there. Your apache web server must have it enabled. If you're on linux: sudo a2enmod rewrite then restart apache On Thu, Oct 29, 2009 at 9:23 AM, Zach zach...@gmail.com wrote: Thanks for the fast reply! 1. yes I did symfony cc 2. yes... I have RewriteEngine On in the .htaccess (that enables mod_rewrite right?) On Oct 28, 3:07 pm, Sid Bachtiar sid.bacht...@gmail.com wrote: 1. Did you clear cache? ./symfony cc 2. Do you have mod_rewrite enabled on your production server? On Thu, Oct 29, 2009 at 8:56 AM, Zach zach...@gmail.com wrote: I've been stuck on this for quite some time and hope someone can help me. It's probably something simple that I am overlooking (and I hope it is) but I can't figure it out. I am integrating PayPal Payments Pro Recurring Billing using Express Checkout. I have already successfully integrated Recurring Billing using Direct Payment. Everything is working fine except I need certain parameters to process the payment after the user is directed back to my site from paypal. So I specify the return url to include those parameters like this $returnUrl = https://mysite/payment/param/$value/param2/$value2;; when paypal redirects to this url it appends a few parameters of it's own so I end up with something like this: https://mysite/payment/param/$value/param2/$value2?token=valuePayerI. .. I wasn't sure if this would work, but it did just fine until I moved to my other testing server and tried it in the production environment instead of frontend_dev.php. Now I just get a 404 not found. But if I insert frontend_dev.php into the url it works fine. How can I get this to work in the production environment? Summary: Works: https://mysite/frontend_dev.php/payment/param/$value/param2/$value2?t. .. Doesn't Work: https://mysite/payment/param/$value/param2/$value2?token=valuePayerI. .. Thank you for you help, Zach -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz -- Blue Horn Ltd - System Developmenthttp://bluehorn.co.nz --~--~-~--~~~---~--~~ 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: admin field level credentials
i think its not implemented yet.. any news? i see something here: http://trac.symfony-project.org/wiki/Symfony12AdminGenerator but there is no resolution Att, Pedro Casado On Wed, Oct 14, 2009 at 6:36 AM, Alexandru-Emil Lupu gang.al...@gmail.comwrote: HI there! I am trying to create some field level credentials in the edit/new, but it seem that the form is always ignores my credentials (displaying all the fields even i do not have those credentials). Any ideea how to fix it ? this is my generator.yml file generator: class: sfPropelGenerator param: model_class: Contacts theme: admin non_verbose_templates: true with_show: false singular: ~ plural:~ route_prefix: contacts with_propel_route: 1 config: actions: ~ fields: first_name: { credentials: edit_contacts_first_name } last_name: { credentials: edit_contacts_last_name } display_name: { credentials: edit_contacts_display_name } nickname: { credentials: edit_contacts_nickname } language: { credentials: edit_contacts_language } is_active: { credentials: edit_contacts_is_active } title: { credentials: edit_contacts_title } filter: fields: first_name: { credentials: edit_contacts_first_name } last_name: { credentials: edit_contacts_last_name } display_name: { credentials: edit_contacts_display_name } nickname: { credentials: edit_contacts_nickname } language: { credentials: edit_contacts_language } is_active: { credentials: edit_contacts_is_active } title: { credentials: edit_contacts_title } form: fields: first_name: { credentials: edit_contacts_first_name } last_name: { credentials: edit_contacts_last_name } display_name: { credentials: edit_contacts_display_name } nickname: { credentials: edit_contacts_nickname } language: { credentials: edit_contacts_language } is_active: { credentials: edit_contacts_is_active } title: { credentials: edit_contacts_title } edit: fields: first_name: { credentials: edit_contacts_first_name } last_name: { credentials: edit_contacts_last_name } display_name: { credentials: edit_contacts_display_name } nickname: { credentials: edit_contacts_nickname } language: { credentials: edit_contacts_language } is_active: { credentials: edit_contacts_is_active } title: { credentials: edit_contacts_title } new: fields: first_name: { credentials: edit_contacts_first_name } last_name: { credentials: edit_contacts_last_name } display_name: { credentials: edit_contacts_display_name } nickname: { credentials: edit_contacts_nickname } language: { credentials: edit_contacts_language } is_active: { credentials: edit_contacts_is_active } title: { credentials: edit_contacts_title } -- 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: hiding a field in admin generator by a credential?
anything for propel? Att, Pedro Casado On Mon, Jun 1, 2009 at 4:51 PM, pcummins patwcumm...@gmail.com wrote: It seems that this functionality is missing in the 1.2 branch, but it can be fixed with a small patch: http://trac.symfony-project.org/ticket/5832 As posted in the ticket, I don't believe the field level credentials are respected in the list views. -pat On Apr 28, 5:07 am, axe ca...@centrum.cz wrote: Hi, I am not sure if it works in generator.yml in symfony 1.2... Try to list required credentials in an array: fields: myfield: { credentials: [editMyField] } Or manage credentials directly in the form. Pavel --~--~-~--~~~---~--~~ 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] core.php/ not working
Hi friends, In my application, I am facing some strange problem I have a link profile a href=?php echo url_for('profile/index'); ? Profile/a When I run the site, when I click on profile link, it goes to myprojecturl/core.php/ and shows blank page. when I press refresh button, it shows profile page properly. why is it so? Any idea? --~--~-~--~~~---~--~~ 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: core.php/ not working
Hey, this is the problem only with opera, in other browsers, its working ok. On Oct 29, 12:12 pm, Avani avani.v.puj...@gmail.com wrote: Hi friends, In my application, I am facing some strange problem I have a link profile a href=?php echo url_for('profile/index'); ? Profile/a When I run the site, when I click on profile link, it goes to myprojecturl/core.php/ and shows blank page. when I press refresh button, it shows profile page properly. why is it so? Any idea? --~--~-~--~~~---~--~~ 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: core.php/ not working
Have you tried to rather using the link_to helper instead of the embedding url_for inside an a tag? ?php echo link_to(Profile, profile/index) ? It creates the entire link for you with the correctly generated url. On Thu, Oct 29, 2009 at 6:12 AM, Avani avani.v.puj...@gmail.com wrote: Hi friends, In my application, I am facing some strange problem I have a link profile a href=?php echo url_for('profile/index'); ? Profile/a When I run the site, when I click on profile link, it goes to myprojecturl/core.php/ and shows blank page. when I press refresh button, it shows profile page properly. why is it so? Any idea? -- 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: How to manage big uploads
I think what he means is PHP's built in script execution time limitations and so on. One thing that you can do is dynamically alter the max execution time and memory limits during the upload process based on the file size. On Wed, Oct 28, 2009 at 5:30 PM, DEEPAK BHATIA toreachdee...@gmail.comwrote: Every web application has a limit on upload else your server could be crashed for no space On Wed, Oct 28, 2009 at 4:41 PM, Gorka glopezdeto...@gmail.com wrote: When it comes to video or audio files, uploading via http forms does not seem to be the best approach: timeouts, size limits, etc... usually get on the way. How would you manage big (+20MB) or batch uploads? I guess the best solution would be a client-side code either in java, flash o silverlight using FTP to upload the files and server-code to process the uploaded files if needed, but I'd like to know how people are solving this issue. -- 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 -~--~~~~--~~--~--~---