[symfony-users] CSRF Module - sfException
Hi, I am using symfony 1.1 and installed plugin for CSRF and enabled in the filters.yml. Now if I click any link in my website, I get the following error as below. Please help. Thanks Deepak CSRF attack detected. stack trace - at **() in *SF_ROOT_DIR/lib/vendor/sfCSRFPlugin-1.0.0/lib/sfCSRFFilter.class.php*line 27 ... https://10.0.1.66/wbrt/web/tool_staging.php/login/home# 1. // error if no token or if token is not valid 2. if (!$requestToken || md5($secret.session_id()) != $requestToken) 3. { 4. throw new sfException('CSRF attack detected.'); 5. } 6. } -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi Daniel, I thought about that, but second point make things impossible. If 2 developers want to develop 2 plugins to extend this UserForm, it won't work... :-( On 11 déc, 02:32, Daniel Lohse annismcken...@googlemail.com wrote: What you can do is this: - you have a BaseUserForm which extends BaseForm, don't you? (or sfForm[Propel, Doctrine] when you're using symfony 1.2, doesn't matter) - UserForm extends BaseUserForm - add another form called ExtendUserForm which extends BaseUserForm - change UserForm to extend ExtendUserForm What your users can do now is replace ExtendUserForm with their own things and you can use UserForm in you foobar module which does not have to overridden at all (apart from templates or such, if need be). First remark: remember to correctly wire all configure() and setup() methods to call parent::configure() and parent::setup() accordingly. Second remark: if you yourself need to at least provide some changes to your users (make email fields validate as email fields and not as string fields etc.) you'll have to insert another hierarchy between ExtendUserForm and BaseUserForm. Cheers, Daniel On 2009-12-11, at 11/December, 1:23 AM, Adrien Mogenet wrote: Hi all, In my `main` application, let say I have a UserForm.class.php to manage my Users. This `main` application has a `foobar` module which displays a UserForm instance. Well, I want to offers to the developers a way to extend this UserForm class by developing some plugins. Is there a clever way to extend UserForm, without overriding the whole `foobar` module ? -- Adrien -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] How to use doctrine tasks only for a given connection?
Hi, I've just noticed the --connection option has been removed from the doctrine:* tasks family since symfony 1.3 (and 1.4 as well), so I wonder what's the recommended way to operate on a particular connection now. Any hint? ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net Mobile: +33 660 92 08 67 -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] unsubscribe
please unsubscribe me. kind regards Verhavert Maarten -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: apache problem when installing (for newbie)
thanks Michal, a working on the same computer it happens this to me: /127.0.0.1:8080/frontend_dev.php works fine 192.168.1.36:8080/frontend_dev.php does not work! can anybody help? On 9 dic, 16:17, Michał Piotrowski mkkp...@gmail.com wrote: Hi, 2009/12/9 Job jordir...@gmail.com: hi all, the problem is the following: localhost:8080/index.php works fine. (symfony project) 192.168.1.36:80/index.php works fine (xampp intro page from another computer) 192.168.1.36:8080 does not work!! does not find the page i have found a couple of threads with similar problems: but not have any clue how to solve http://www.openbluhost.com/windows-server/52606-help-apache-works-loc... thanks in advance, I'm using the following config. It should work fine for you. You just need to change 80 port to 8080 and path'es. NameVirtualHost *:80 VirtualHost *:80 DocumentRoot /var/www/html/ /VirtualHost VirtualHost *:80 ServerName project DocumentRoot /home/michal/projekty/project/web DirectoryIndex index.php Directory /home/michal/projekty/project/web AllowOverride All Allow from All /Directory Alias /sf /usr/share/pear/data/symfony/web/sf Directory /usr/share/pear/data/symfony/web/sf AllowOverride All Allow from All /Directory /VirtualHost Regards, M. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] How to use doctrine tasks only for a given connection?
Connections are bound to an environment, so I guess just use the --env option. On Fri, Dec 11, 2009 at 10:32 AM, Nicolas Perriault nperria...@gmail.comwrote: Hi, I've just noticed the --connection option has been removed from the doctrine:* tasks family since symfony 1.3 (and 1.4 as well), so I wonder what's the recommended way to operate on a particular connection now. Any hint? ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net Mobile: +33 660 92 08 67 -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Thomas Rabaix http://rabaix.net -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: apache problem when installing (for newbie)
ok, I made it work, just by putting 192.168.1.36 in the config httpd of the apache. strange solution!! On 9 dic, 16:17, Michał Piotrowski mkkp...@gmail.com wrote: Hi, 2009/12/9 Job jordir...@gmail.com: hi all, the problem is the following: localhost:8080/index.php works fine. (symfony project) 192.168.1.36:80/index.php works fine (xampp intro page from another computer) 192.168.1.36:8080 does not work!! does not find the page i have found a couple of threads with similar problems: but not have any clue how to solve http://www.openbluhost.com/windows-server/52606-help-apache-works-loc... thanks in advance, I'm using the following config. It should work fine for you. You just need to change 80 port to 8080 and path'es. NameVirtualHost *:80 VirtualHost *:80 DocumentRoot /var/www/html/ /VirtualHost VirtualHost *:80 ServerName project DocumentRoot /home/michal/projekty/project/web DirectoryIndex index.php Directory /home/michal/projekty/project/web AllowOverride All Allow from All /Directory Alias /sf /usr/share/pear/data/symfony/web/sf Directory /usr/share/pear/data/symfony/web/sf AllowOverride All Allow from All /Directory /VirtualHost Regards, M. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: How to use Filter Forms without Admin Generator?
Interesting topic.. would you mind posting the solution when you have done? Thnak you in advance On 10 Dic, 08:48, Christopher Schnell ty...@mda.ch wrote: Yeah, I thought so. But I can use the fieldset of the filter form anyway. I was mainly curious because the form filters are nowhere described, and I use filters to let the user select the records quite often. So it would have come handy earlier, but i just didn't know how to use them. Maybe I could make a documentation request :-) Regards, Christopher. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] unsubscribe
Please send blank mail to symfony-users+unsubscr...@googlegroups.com On Fri, Dec 11, 2009 at 3:04 PM, Verhavert Maarten maar...@hyp3.be wrote: please unsubscribe me. kind regards Verhavert Maarten -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Weird url_for bug
When I use the url_for() function, the output is without the controller prefix. Example, on controlpanel_dev.php/system/sign_in_form I place the form, and I use echo url_for('system/sign_in') The output now is /system/sign_in, while it should be controlpanel_dev.php/system/sign_in! Anyone who knows how that might come? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] How to use doctrine tasks only for a given connection?
On Fri, Dec 11, 2009 at 10:52 AM, Thomas Rabaix thomas.rab...@gmail.com wrote: Connections are bound to an environment, so I guess just use the --env option. I don't think so, just imagine you have a connection for a given third-part software which you just want to read the database from: if you create a dedicated and isolated environment for it, how will you be able to read it in the prod one? ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net Mobile: +33 660 92 08 67 -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] problem with functional test for upload
Hello, I have an action that accepts file uploads from a desktop program. I use a form for validation (see below) and if the form is valid, I process the uploaded files(see action below). This works as expected. But the functional tests (see below) do not upload any file (result see below, result 37 shows, that no file is uploaded, but only the path, and 39 shows that the sfFileValidator complains that the file is required). I checked the docs, but I only found this (http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11): The browser also simulates file uploads if you pass the absolute path to the file to upload. which either I don't understand or doesn't work. Has anyone done file uploads in a functional test, and how? Thanks Georg my functional test: __ $in2 = array('path' = '/path', 'md5' = 'e1aab77d216d8ad97ff143823a75038e', 'ci' = '0123456789abcdef0123456789abcdef', 'file' = '/var/www/shared/appxxx/test/fixtures/testdata/images/IMG_0283.JPG'); $browser = new sfTestFunctional(new sfBrowser()); $browser- //... info('post remote/upload - returns OK')- post('http://client.virtual/remote/upload', $in2)- with('request')-begin()- isParameter('module', 'remote')- isParameter('action', 'upload')- isParameter('ci', '0123456789abcdef0123456789abcdef')- isParameter('md5', 'e1aab77d216d8ad97ff143823a75038e')- isParameter('path', '/path')- isParameter('file', '')- end()- with('response')-begin()- isStatusCode(200)- matches('#OK#')- end(); __ the validation form: __ class UploadForm extends BaseForm { public function configure() { $this-setValidators(array( 'ci' = new sfValidatorString(array('max_length' = 32, 'min_length' = 32)), 'path' = new sfValidatorDoctrineChoice(array('model' = 'Path', 'column' = 'path')), 'md5' = new sfValidatorString(array('max_length' = 32, 'min_length' = 32)), 'file' = new sfValidatorFile(array('max_size' = 20, 'mime_types' = 'web_images')), 'module' = new sfValidatorPass(), 'action' = new sfValidatorPass(), )); $this-disableLocalCSRFProtection(); } } __ and the action looks like this: __ public function executeUpload(sfWebRequest $request) { if ($request-isMethod('post')) { $this-form = new UploadForm(); $this-form-bind($request-getParameterHolder()-getAll(), $request-getFiles()); if ($this-form-isValid()) { // to something return $this-renderText('OK'); } else { $result = 'ERROR: '; foreach($this-form-getErrorSchema()-getErrors() as $k = $error) { $result .= \n$k: . $error-getMessage(); } return $this-renderText($result); } } return $this-renderText('ERROR Invalid method'); } __ and the test result: __ not ok 37 - request parameter file is # Failed test (./lib/vendor/symfony/lib/test/sfTesterRequest.class.php at line 48) #got: '/var/www/shared/appxxx/test/fixtures/testdata/images/IMG_0283.JPG' # expected: '' ok 38 - status code is 200 not ok 39 - response content matches regex #OK# # Failed test (./lib/vendor/symfony/lib/test/sfTesterResponse.class.php at line 383) # 'ERROR: file: Required.' # doesn't match '#OK#' -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] sfWidgetFormDoctrineChoice render with value
Bonjour, j'ai un form $this-setWidgets(array( 'product_id' = new sfWidgetFormDoctrineChoice(array('model' = 'Product')), )); $this-getWidget('product_id')-setOption('order_by', array ('name', 'ASC')); $this-setValidators(array( 'product_id' = new sfValidatorDoctrineChoice(array('model' = 'Product')), )); dans ma vue j'aimerai afficher le sfWidgetFormDoctrineChoice product_id dans ma vue en forçant la valeur... j'ai donc essayé de la même manière que pour un sfWidgetFormInput ?php echo($form['product_id']-render(array('value' = $value)); ? Cela ne fonction pas... -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Weird url_for bug
Check your no_script_name setting. On Fri, Dec 11, 2009 at 12:41, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: When I use the url_for() function, the output is without the controller prefix. Example, on controlpanel_dev.php/system/sign_in_form I place the form, and I use echo url_for('system/sign_in') The output now is /system/sign_in, while it should be controlpanel_dev.php/system/sign_in! Anyone who knows how that might come? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] problem with functional test for upload
Check your IsParameter('file','') The test expects no file but you send one... so the file parameter is not empty. sent via htc magic On Dec 11, 2009 2:01 PM, Georg Gell geor...@have2.com wrote: Hello, I have an action that accepts file uploads from a desktop program. I use a form for validation (see below) and if the form is valid, I process the uploaded files(see action below). This works as expected. But the functional tests (see below) do not upload any file (result see below, result 37 shows, that no file is uploaded, but only the path, and 39 shows that the sfFileValidator complains that the file is required). I checked the docs, but I only found this (http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11): The browser also simulates file uploads if you pass the absolute path to the file to upload. which either I don't understand or doesn't work. Has anyone done file uploads in a functional test, and how? Thanks Georg my functional test: __ $in2 = array('path' = '/path', 'md5' = 'e1aab77d216d8ad97ff143823a75038e', 'ci' = '0123456789abcdef0123456789abcdef', 'file' = '/var/www/shared/appxxx/test/fixtures/testdata/images/IMG_0283.JPG'); $browser = new sfTestFunctional(new sfBrowser()); $browser- //... info('post remote/upload - returns OK')- post('http://client.virtual/remote/upload', $in2)- with('request')-begin()- isParameter('module', 'remote')- isParameter('action', 'upload')- isParameter('ci', '0123456789abcdef0123456789abcdef')- isParameter('md5', 'e1aab77d216d8ad97ff143823a75038e')- isParameter('path', '/path')- isParameter('file', '')- end()- with('response')-begin()- isStatusCode(200)- matches('#OK#')- end(); __ the validation form: __ class UploadForm extends BaseForm { public function configure() { $this-setValidators(array( 'ci' = new sfValidatorString(array('max_length' = 32, 'min_length' = 32)), 'path' = new sfValidatorDoctrineChoice(array('model' = 'Path', 'column' = 'path')), 'md5' = new sfValidatorString(array('max_length' = 32, 'min_length' = 32)), 'file' = new sfValidatorFile(array('max_size' = 20, 'mime_types' = 'web_images')), 'module' = new sfValidatorPass(), 'action' = new sfValidatorPass(), )); $this-disableLocalCSRFProtection(); } } __ and the action looks like this: __ public function executeUpload(sfWebRequest $request) { if ($request-isMethod('post')) { $this-form = new UploadForm(); $this-form-bind($request-getParameterHolder()-getAll(), $request-getFiles()); if ($this-form-isValid()) { // to something return $this-renderText('OK'); } else { $result = 'ERROR: '; foreach($this-form-getErrorSchema()-getErrors() as $k = $error) { $result .= \n$k: . $error-getMessage(); } return $this-renderText($result); } } return $this-renderText('ERROR Invalid method'); } __ and the test result: __ not ok 37 - request parameter file is # Failed test (./lib/vendor/symfony/lib/test/sfTesterRequest.class.php at line 48) #got: '/var/www/shared/appxxx/test/fixtures/testdata/images/IMG_0283.JPG' # expected: '' ok 38 - status code is 200 not ok 39 - response content matches regex #OK# # Failed test (./lib/vendor/symfony/lib/test/sfTesterResponse.class.php at line 383) # 'ERROR: file: Required.' # doesn't match '#OK#' -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] symfony1.3.1 + doctrine + astAs I18N - Doctrine_Connection_Mysql_Exception - serious bug?
I think i found a serious bug in symfony/doctine! For me this was repeatable (i tried it with several schemas and different symfony application) Summary: When you use more than a certain number of I18n fields within a schema / model (in my case 7 fields) doctrine generates a Doctrine_Connection_Mysql_Exception. Description of the error: * I´m using symfony 1.3.1 * My schema: options: charset: utf8 collate: utf8_general_ci type: InnoDB Offer: actAs: I18n: fields: [offervalue1, offervalue2, offervalue3, offervalue4, offervalue5, offervalue6, offervalue7, offervalue8, offervalue9] columns: offername: { type: string(255) } offervalue1: { type: string(255) } offervalue2: { type: string(255) } offervalue3: { type: string(255) } offervalue4: { type: string(255) } offervalue5: { type: string(255) } offervalue6: { type: string(255) } offervalue7: { type: string(255) } offervalue8: { type: string(255) } offervalue9: { type: string(255) } offervalue10: { type: string(255) } offervalue11: { type: string(255) } offervalue12: { type: string(255) } offervalue13: { type: string(255) } offervalue14: { type: string(255) } offervalue15: { type: string(255) } offervalue16: { type: string(255) } offervalue17: { type: string(255) } offervalue18: { type: string(255) } offervalue19: { type: string(255) } offervalue20: { type: string(255) } offervalue21: { type: string(255) } offervalue22: { type: string(255) } offervalue23: { type: string(255) } offervalue24: { type: string(255) } offervalue25: { type: string(255) } offervalue26: { type: string(255) } offervalue27: { type: string(255) } offervalue28: { type: string(255) } offervalue29: { type: string(255) } offervalue30: { type: string(255) } * My form: class OfferForm extends BaseOfferForm { public function configure() { $this-embedI18n(array ('de','en','fr','it','us','hu','pl','nl','da','sv','es','ru','fi','cs','ja','ro','et','tr','ko')); $this-widgetSchema-setLabel('de', 'German'); $this-widgetSchema-setLabel('en', 'English UK'); $this-widgetSchema-setLabel('fr', 'French'); $this-widgetSchema-setLabel('it', 'Italian'); $this-widgetSchema-setLabel('us', 'English US'); $this-widgetSchema-setLabel('hu', 'Hungarian'); $this-widgetSchema-setLabel('pl', 'Polish'); $this-widgetSchema-setLabel('nl', 'Dutch'); $this-widgetSchema-setLabel('da', 'Danish'); $this-widgetSchema-setLabel('sv', 'Swedish'); $this-widgetSchema-setLabel('es', 'Spanish'); $this-widgetSchema-setLabel('ru', 'Russian'); $this-widgetSchema-setLabel('fi', 'Finnish'); $this-widgetSchema-setLabel('cs', 'Czech'); $this-widgetSchema-setLabel('ja', 'Japanese'); $this-widgetSchema-setLabel('ro', 'Romanian'); $this-widgetSchema-setLabel('et', 'Estonian'); $this-widgetSchema-setLabel('tr', 'Turkish'); $this-widgetSchema-setLabel('ko', 'Korean'); } } * the error: -- when you create a new Offer everthing is ok -- when you try to update a Offer the following error message appears: 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`mytest/ offer_translation`,CONSTRAINT `offer_translation_id_offer_id` FOREIGN KEY (`id`) REFERENCES `offer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) If you reduce the number of i18n fields (here overvalue1 - overvalue7) everthing works fine! as soon as you use more then 7 fields the error appears. (but strangely the data will be saved correctly!) Please if there is anybody how can give me a hint how to solve this problem i would be really thankful (a large project depends on this and i have no clue how to solve 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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Weird url_for bug
prod: .settings: no_script_name: true logging_enabled:false dev: .settings: error_reporting:?php echo (E_ALL | E_STRICT).\n ? web_debug: true cache: false no_script_name: false etag: false It was true for the prod environment, false for the dev environment. The weird thing is, if I change it to false in the prod settings, it all works. If I change it tot true in the prod settings, also in the dev environment the .php file prefix is missing. On 11 dec, 13:09, Gábor Fási maerl...@gmail.com wrote: Check your no_script_name setting. On Fri, Dec 11, 2009 at 12:41, HAUSa jeroen_heeft_behoefte_aan_r...@hotmail.com wrote: When I use the url_for() function, the output is without the controller prefix. Example, on controlpanel_dev.php/system/sign_in_form I place the form, and I use echo url_for('system/sign_in') The output now is /system/sign_in, while it should be controlpanel_dev.php/system/sign_in! Anyone who knows how that might come? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Extending model within a plugin : execute SQL statements
Hi all, I'm writing a plugin, with a custom new schema.yml. Well, doctrine:build-model generates my model files. doctrine:build-sql build the SQL file in the main SQL file Is there a clever way to generate SQL statements and execute them within a plugin ? Because if I perform doctrine:insert-sql, doctrine will execute the whole SQL file... -- Adrien -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
What exactly is your use-case secenario? What are you trying to accomplish (and, I don't mean extend a plugin, I mean the underlying motivation)? Daniel On 2009-12-11, at 11/December, 10:24 AM, Adrien Mogenet wrote: Hi Daniel, I thought about that, but second point make things impossible. If 2 developers want to develop 2 plugins to extend this UserForm, it won't work... :-( On 11 déc, 02:32, Daniel Lohse annismcken...@googlemail.com wrote: What you can do is this: - you have a BaseUserForm which extends BaseForm, don't you? (or sfForm[Propel, Doctrine] when you're using symfony 1.2, doesn't matter) - UserForm extends BaseUserForm - add another form called ExtendUserForm which extends BaseUserForm - change UserForm to extend ExtendUserForm What your users can do now is replace ExtendUserForm with their own things and you can use UserForm in you foobar module which does not have to overridden at all (apart from templates or such, if need be). First remark: remember to correctly wire all configure() and setup() methods to call parent::configure() and parent::setup() accordingly. Second remark: if you yourself need to at least provide some changes to your users (make email fields validate as email fields and not as string fields etc.) you'll have to insert another hierarchy between ExtendUserForm and BaseUserForm. Cheers, Daniel On 2009-12-11, at 11/December, 1:23 AM, Adrien Mogenet wrote: Hi all, In my `main` application, let say I have a UserForm.class.php to manage my Users. This `main` application has a `foobar` module which displays a UserForm instance. Well, I want to offers to the developers a way to extend this UserForm class by developing some plugins. Is there a clever way to extend UserForm, without overriding the whole `foobar` module ? -- Adrien -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Extend forms (Doctrine) with Plugins
My `main` application provides a Expense module, to manage Expense records { account_id, amount, label } So, expense/new action displays an ExpenseForm instance, with these fields. A developer may want to add a company_id field to link an expense to a company. So he will need to override existing ExpenseForm, to be able to use it in expense/new action. -- Adrien On 11 déc, 13:51, Daniel Lohse annismcken...@googlemail.com wrote: What exactly is your use-case secenario? What are you trying to accomplish (and, I don't mean extend a plugin, I mean the underlying motivation)? Daniel On 2009-12-11, at 11/December, 10:24 AM, Adrien Mogenet wrote: Hi Daniel, I thought about that, but second point make things impossible. If 2 developers want to develop 2 plugins to extend this UserForm, it won't work... :-( On 11 déc, 02:32, Daniel Lohse annismcken...@googlemail.com wrote: What you can do is this: - you have a BaseUserForm which extends BaseForm, don't you? (or sfForm[Propel, Doctrine] when you're using symfony 1.2, doesn't matter) - UserForm extends BaseUserForm - add another form called ExtendUserForm which extends BaseUserForm - change UserForm to extend ExtendUserForm What your users can do now is replace ExtendUserForm with their own things and you can use UserForm in you foobar module which does not have to overridden at all (apart from templates or such, if need be). First remark: remember to correctly wire all configure() and setup() methods to call parent::configure() and parent::setup() accordingly. Second remark: if you yourself need to at least provide some changes to your users (make email fields validate as email fields and not as string fields etc.) you'll have to insert another hierarchy between ExtendUserForm and BaseUserForm. Cheers, Daniel On 2009-12-11, at 11/December, 1:23 AM, Adrien Mogenet wrote: Hi all, In my `main` application, let say I have a UserForm.class.php to manage my Users. This `main` application has a `foobar` module which displays a UserForm instance. Well, I want to offers to the developers a way to extend this UserForm class by developing some plugins. Is there a clever way to extend UserForm, without overriding the whole `foobar` module ? -- Adrien -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: Re: Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: Re: Re: Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: Re: Re: Re: Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: Re: Re: Re: Re: Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Extending a plugin schema (propel)
I've found the problem: my plugins are symlinked (since they're shared) which work fine for loading them but the path correction in sfPropelBaskTask.class.php#134 doesn't compensate for this. It uses absolute paths for the schemas which messes things up: /usr/home/bertjan/cowboys-1.2/dcModelPlugin/config/schema.yml is converted to a custom schema name _usr_home_bertjan_cowboys-1.2_dcModelPlugin_schema.custom.yml which should have been dcModelPlugin_schema.custom.yml I'm leaving on holiday in a few hours so I don't have time to create a patch for this. Bert-Jan wrote: Hi Folks, I'm trying to extend the schema of my plugin as described in http://www.symfony-project.org/book/1_2/17-Extending-Symfony#Customizing a Plug-In for an Application. Running symfony 1.2.11-DEV from the 1.2 svn branch. My plugin is named dcModelPlugin which contains the entire model for a number of projects I have running on the same codebase. For the project I'm working on right now I need to add some fields to a few tables and some tables, but they need to stay in this project only. I've created /config/dcModulePlugin_schema.custom.yml, put only the changes I need in there, made the package and phpName attributes identical, and propel:build-model completely ignores it. When I try the same thing but call the project's schema schema.yml too, then I get errors about foreign key references to non-existing tables. Strange enough I've just removed the foreign table reference and only left the field definition and the error disappeared, but nothing changes in the model classes. Then I put the foreign table reference back in and the error stays away, but still no changes in the model classes. I've tried changing the package of both the plugin and the project from plugins.dcModelPlugin.lib.model to lib.model and vice versa, but nothing changes. When I change the plugin's schema package to lib.model and remove the project's own schema it *still* doesn't build the model classes in lib.model. I've tried this extending of a plugin's schema several times before in the past months and never got a single usable result from it. Can someone please confirm that it actually works with propel ? Has it ever worked ? Thanks, Bert-Jan -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: Re: Re: Re: Re: Re: Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: [symfony-users] Extending a plugin schema (propel)
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: Re: Re: Re: Re: Re: Re: Re: Re: [symfony-users] Re: Extend forms (Doctrine) with Plugins
Hi there, unfortunately this email address no longer accepts mail. For web enquiries please contact DDNS on 03 9815 6868 or i...@ddns.com.au For support related issues please email supp...@ddns.com.au Kind Regards, Domain Admin -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] How to use doctrine tasks only for a given connection?
If your third party software need a specific connection, just define the connection in 'all' section with a specific name. Then just get the connection with the doctrine manager. So you can have : - all: global connections - prod: prod specific connections - dev: dev specific connections Does it make sense ? On Fri, Dec 11, 2009 at 12:49 PM, Nicolas Perriault nperria...@gmail.comwrote: On Fri, Dec 11, 2009 at 10:52 AM, Thomas Rabaix thomas.rab...@gmail.com wrote: Connections are bound to an environment, so I guess just use the --env option. I don't think so, just imagine you have a connection for a given third-part software which you just want to read the database from: if you create a dedicated and isolated environment for it, how will you be able to read it in the prod one? ++ -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net Mobile: +33 660 92 08 67 -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Thomas Rabaix http://rabaix.net -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] sfWidgetFormInputFileEditable admin required file
i get the error when i try to edit an record. create and delete works fine but if i try to edit an record and dont select any file when i hit save the required error appears. Thanks Celso On Fri, Dec 11, 2009 at 5:11 AM, Alexandru-Emil Lupu gang.al...@gmail.comwrote: When you get that required error? Better what are you trying to achieve? sent via htc magic On Dec 11, 2009 1:11 AM, g0d br g0d...@gmail.com wrote: Hi, I have an schema like this: banner: id: ~ ordem: { type: integer, required: true } imagem: { type: varchar(255), required: true } link: { type: varchar(255), required: false } When i edit an record in admin module i get an error Required for imagem field. Thats the code in BannerForm.class.php parent::configure(); $this-widgetSchema['imagem'] = new sfWidgetFormInputFileEditable(array( 'label' = 'Imagem 630x288', 'file_src' = '/uploads/banner/'.$this-getObject()-getImagem(), 'is_image' = true, 'edit_mode' = !$this-isNew(), 'delete_label' = 'Remover imagem', 'template' = 'div%file%br /%input%br /%delete% %delete_label%/div', )); /* $this-widgetSchema['imagem'] = new sfWidgetFormInputFile(array( 'label' = 'Imagem 630x288', )); */ $this-validatorSchema['imagem'] = new sfValidatorFile(array( 'required' = true, 'path' = sfConfig::get('sf_upload_dir').'/banner', 'mime_types' = 'web_images', )); $this-validatorSchema['imagem_delete'] = new sfValidatorBoolean(); What an my doing wrong here? this code i get from symfony docs. Thank You Celso -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] problem with functional test for upload
Hi, I don't really understand what you mean that I should so. I understand that the 'file' parameter is not empty, because I am trying to upload a file. But it shouldn't be a path either IMO, I just used this test to show the value of the 'file' parameter, which is not a file, but a path. The real problem is the second test, where the sfFileValidator complains about the missing file. Georg Am 11.12.2009 13:36, schrieb Alexandru-Emil Lupu: Check your IsParameter('file','') The test expects no file but you send one... so the file parameter is not empty. sent via htc magic On Dec 11, 2009 2:01 PM, Georg Gell geor...@have2.com mailto:geor...@have2.com wrote: Hello, I have an action that accepts file uploads from a desktop program. I use a form for validation (see below) and if the form is valid, I process the uploaded files(see action below). This works as expected. But the functional tests (see below) do not upload any file (result see below, result 37 shows, that no file is uploaded, but only the path, and 39 shows that the sfFileValidator complains that the file is required). I checked the docs, but I only found this (http://www.symfony-project.org/jobeet/1_4/Doctrine/en/11): The browser also simulates file uploads if you pass the absolute path to the file to upload. which either I don't understand or doesn't work. Has anyone done file uploads in a functional test, and how? Thanks Georg my functional test: __ $in2 = array('path' = '/path', 'md5' = 'e1aab77d216d8ad97ff143823a75038e', 'ci' = '0123456789abcdef0123456789abcdef', 'file' = '/var/www/shared/appxxx/test/fixtures/testdata/images/IMG_0283.JPG'); $browser = new sfTestFunctional(new sfBrowser()); $browser- //... info('post remote/upload - returns OK')- post('http://client.virtual/remote/upload', $in2)- with('request')-begin()- isParameter('module', 'remote')- isParameter('action', 'upload')- isParameter('ci', '0123456789abcdef0123456789abcdef')- isParameter('md5', 'e1aab77d216d8ad97ff143823a75038e')- isParameter('path', '/path')- isParameter('file', '')- end()- with('response')-begin()- isStatusCode(200)- matches('#OK#')- end(); __ the validation form: __ class UploadForm extends BaseForm { public function configure() { $this-setValidators(array( 'ci' = new sfValidatorString(array('max_length' = 32, 'min_length' = 32)), 'path' = new sfValidatorDoctrineChoice(array('model' = 'Path', 'column' = 'path')), 'md5' = new sfValidatorString(array('max_length' = 32, 'min_length' = 32)), 'file' = new sfValidatorFile(array('max_size' = 20, 'mime_types' = 'web_images')), 'module' = new sfValidatorPass(), 'action' = new sfValidatorPass(), )); $this-disableLocalCSRFProtection(); } } __ and the action looks like this: __ public function executeUpload(sfWebRequest $request) { if ($request-isMethod('post')) { $this-form = new UploadForm(); $this-form-bind($request-getParameterHolder()-getAll(), $request-getFiles()); if ($this-form-isValid()) { // to something return $this-renderText('OK'); } else { $result = 'ERROR: '; foreach($this-form-getErrorSchema()-getErrors() as $k = $error) { $result .= \n$k: . $error-getMessage(); } return $this-renderText($result); } } return $this-renderText('ERROR Invalid method'); } __ and the test result: __ not ok 37 - request parameter file is # Failed test (./lib/vendor/symfony/lib/test/sfTesterRequest.class.php at line 48) #got: '/var/www/shared/appxxx/test/fixtures/testdata/images/IMG_0283.JPG' # expected: '' ok 38 - status code is 200 not ok 39 - response content matches regex #OK# # Failed test (./lib/vendor/symfony/lib/test/sfTesterResponse.class.php at line 383) # 'ERROR: file: Required.' # doesn't match '#OK#' -- 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 mailto:symfony-users@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com mailto:symfony-users%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to
Re: [symfony-users] Extending model within a plugin : execute SQL statements
There is no possibility of generating SQL for a plugin in the plugin folder. You should ignore these files in version control, because they are generated when required. 2009/12/11 Adrien Mogenet adrien.moge...@gmail.com Hi all, I'm writing a plugin, with a custom new schema.yml. Well, doctrine:build-model generates my model files. doctrine:build-sql build the SQL file in the main SQL file Is there a clever way to generate SQL statements and execute them within a plugin ? Because if I perform doctrine:insert-sql, doctrine will execute the whole SQL file... -- Adrien -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Need to hire a Symfony Developer to work on projects
Hi, You should also post it on symfonians.net Alexandre 2009/12/8 IH cpacincm...@gmail.com I need a developer that can work in Symfony. The project will be broken down into small task that will be paid at completion of each. Things to be done will be to create a landing page, create a form page to capture user information, create a page that shows a list (table) of items available (5 columns and about 20 rows). This is for a technology company selling computer hardware. Any suggestions? Each project will pay about $100USD. Thanks! -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] symfony1.3.1 + doctrine + astAs I18N - Doctrine_Connection_Mysql_Exception - serious bug?
Could you submit it to the Doctrine user group ? 2009/12/11 micon haigermo...@web.de I think i found a serious bug in symfony/doctine! For me this was repeatable (i tried it with several schemas and different symfony application) Summary: When you use more than a certain number of I18n fields within a schema / model (in my case 7 fields) doctrine generates a Doctrine_Connection_Mysql_Exception. Description of the error: * I´m using symfony 1.3.1 * My schema: options: charset: utf8 collate: utf8_general_ci type: InnoDB Offer: actAs: I18n: fields: [offervalue1, offervalue2, offervalue3, offervalue4, offervalue5, offervalue6, offervalue7, offervalue8, offervalue9] columns: offername: { type: string(255) } offervalue1: { type: string(255) } offervalue2: { type: string(255) } offervalue3: { type: string(255) } offervalue4: { type: string(255) } offervalue5: { type: string(255) } offervalue6: { type: string(255) } offervalue7: { type: string(255) } offervalue8: { type: string(255) } offervalue9: { type: string(255) } offervalue10: { type: string(255) } offervalue11: { type: string(255) } offervalue12: { type: string(255) } offervalue13: { type: string(255) } offervalue14: { type: string(255) } offervalue15: { type: string(255) } offervalue16: { type: string(255) } offervalue17: { type: string(255) } offervalue18: { type: string(255) } offervalue19: { type: string(255) } offervalue20: { type: string(255) } offervalue21: { type: string(255) } offervalue22: { type: string(255) } offervalue23: { type: string(255) } offervalue24: { type: string(255) } offervalue25: { type: string(255) } offervalue26: { type: string(255) } offervalue27: { type: string(255) } offervalue28: { type: string(255) } offervalue29: { type: string(255) } offervalue30: { type: string(255) } * My form: class OfferForm extends BaseOfferForm { public function configure() { $this-embedI18n(array ('de','en','fr','it','us','hu','pl','nl','da','sv','es','ru','fi','cs','ja','ro','et','tr','ko')); $this-widgetSchema-setLabel('de', 'German'); $this-widgetSchema-setLabel('en', 'English UK'); $this-widgetSchema-setLabel('fr', 'French'); $this-widgetSchema-setLabel('it', 'Italian'); $this-widgetSchema-setLabel('us', 'English US'); $this-widgetSchema-setLabel('hu', 'Hungarian'); $this-widgetSchema-setLabel('pl', 'Polish'); $this-widgetSchema-setLabel('nl', 'Dutch'); $this-widgetSchema-setLabel('da', 'Danish'); $this-widgetSchema-setLabel('sv', 'Swedish'); $this-widgetSchema-setLabel('es', 'Spanish'); $this-widgetSchema-setLabel('ru', 'Russian'); $this-widgetSchema-setLabel('fi', 'Finnish'); $this-widgetSchema-setLabel('cs', 'Czech'); $this-widgetSchema-setLabel('ja', 'Japanese'); $this-widgetSchema-setLabel('ro', 'Romanian'); $this-widgetSchema-setLabel('et', 'Estonian'); $this-widgetSchema-setLabel('tr', 'Turkish'); $this-widgetSchema-setLabel('ko', 'Korean'); } } * the error: -- when you create a new Offer everthing is ok -- when you try to update a Offer the following error message appears: 500 | Internal Server Error | Doctrine_Connection_Mysql_Exception SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails (`mytest/ offer_translation`,CONSTRAINT `offer_translation_id_offer_id` FOREIGN KEY (`id`) REFERENCES `offer` (`id`) ON DELETE CASCADE ON UPDATE CASCADE) If you reduce the number of i18n fields (here overvalue1 - overvalue7) everthing works fine! as soon as you use more then 7 fields the error appears. (but strangely the data will be saved correctly!) Please if there is anybody how can give me a hint how to solve this problem i would be really thankful (a large project depends on this and i have no clue how to solve 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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more
Re: [symfony-users] sfWidgetFormDoctrineChoice render with value
You must use the default or bind a value to your form, not render it with the value attribute. With default value : public function configure() { $this-setDefault('field_name', 'default value'); } Or when binding : $form-bind(array ( 'field_name' = 'value' )); Alexandre 2009/12/11 smellycat37 charley.mail...@gmail.com Bonjour, j'ai un form $this-setWidgets(array( 'product_id' = new sfWidgetFormDoctrineChoice(array('model' = 'Product')), )); $this-getWidget('product_id')-setOption('order_by', array ('name', 'ASC')); $this-setValidators(array( 'product_id' = new sfValidatorDoctrineChoice(array('model' = 'Product')), )); dans ma vue j'aimerai afficher le sfWidgetFormDoctrineChoice product_id dans ma vue en forçant la valeur... j'ai donc essayé de la même manière que pour un sfWidgetFormInput ?php echo($form['product_id']-render(array('value' = $value)); ? Cela ne fonction pas... -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] symfony1.3.1 + doctrine + astAs I18N - Doctrine_Connection_Mysql_Exception - serious bug?
submit to doctrine-users == done Am 11.12.2009 um 15:50 schrieb Alexandre Salomé: Could you submit it to the Doctrine user group ? 2009/12/11 micon haigermo...@web.de -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en . -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] validate folder is not used in 1.2
http://trac.symfony-project.org/changeset/24594 looks like you can just remove the whole validate folder. cheers Marco -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: var_dump Doctrine_Record
No answers ? On 10 déc, 10:02, Salim salim.semao...@gmail.com wrote: Here is an sample of the schema : Place: actAs: I18n: fields: - name - number - address - postal_box - cedex - city - zip_code - country - tel - fax - email - website - presentation - image connection: via_france columns: lon: float lat: float name: string(255) number: string(255) address: string(255) postal_box: string(255) cedex: string(255) city: string(255) zip_code: string(255) insee: string(10) country_id: string(2) country: string(255) tel: string(255) fax: string(255) email: string(255) website: string(255) presentation: string(4000) image: string(255) stars: integer On 9 déc, 17:45, Serkan Koyuncu serkan.koyu...@gmail.com wrote: Could you please post your schema? Regards, S. 2009/12/9 Salim salim.semao...@gmail.com: PS : I am using Symfony 1.2 with Doctrine 1.1 On 9 déc, 17:03, Salim salim.semao...@gmail.com wrote: Hi all, After inspecting several doctrine records on my project, I realized that every field of these records was casted into strings whatever the type declared for the column in the schema.yml file. Is it a known issue, or am I missing something ? Thank's in advance for your help -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Making Symfony Web Site Secure
Hi, yes, exists anothers kinds of attacks like SQL injection (but the symfony prevents it). Another thing that you need pay atention is the command injection(exec, system, passthru). A good way to prevents this problem is escape the shell output. I believe that with the XSS and CSRF, in most cases, your site will be secure. It will depends in what kind of service your application provides. bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Back Button in Ajax
Hi, In my application I have 2 select boxes one populated with chapter and the other with topic of that chapter. The notes for this combination are displayed in the div. The code is ?php echo form_remote_tag(array( 'update' = 'studymaterial', 'url' = 'studymaterial/notes', 'complete' = remote_function(array( 'update' = 'myPagination', 'url' = studymaterial/paging, 'with'= 'id=' + \$F('chapter'), 'script' =TRUE, )), 'script' = TRUE, )) ? table width=84% border=0 cellspacing=0 cellpadding=3 tr tdspan class=style_form ?php echo select_tag('chapter', objects_for_select( $chapters, 'getChapterId', 'getChapters'), array( 'onchange' = remote_function(array( 'update' = 'item_topic', 'url' = 'studymaterial/topic', 'with' = 'id=' + this.options [this.selectedIndex].value )) ) ) ? /span/td /tr tr tdspan class=style_form div id=item_topic class=style_form ?php echo select_tag('topic', objects_for_select( $topic, 'getTopic', 'getTopic' )) ? /div /span/td /tr tr tdspan style=margin-left:4px; ?php echo submit_tag('Get Notes') ? /span/td /tr /table /form ?php end_slot() ? ?php slot('studycontent') ? div id=studymaterial /div ?php end_slot() ? ?php slot('pagination')? div id=myPagination /div ?php end_slot()? In the pagination slot, i am displaying the number of pages for the selected chapter..one for each topic. My questions 1. How do I chnage the topic select box according to the page selected by user? If page 3 is clicked then the notes for that topic should be displayed and the topic select box should show topic 3. 2. If i have some link in the notes section like a href click for more information/a then on back button click I should display to user the 2 select boxes with chosen values and the notes for that combination. How to achieve this? Thanks for any help in advance. Priya -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] 1.4 dev performance is slo....w
Since upgrading from 1.2.8 to 1.4.1, I've noticed a significant dip in overall execution time in the dev environment, which makes the task of developing slower - as I wait that extra second or so for pages to load. while i appreciate that the new debug toolbar is giving me even more useful info like the View pane, this extra logging is slowing down my development productivity, which is frustrating. Just wondering if anyone else is experiencing the same 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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Admin generator translation in sf1.4
I've been using the admin generator quite a lot for my Dutch customers. So it was a very handy feature that the admin generator was translated by default. To accomplish that, I used the following settings.yml options: all: .settings: i18n: on default_culture:nl_NL But since I've been using sf1.4, the interface is in English again! Do I have to do something else despite changing these options to enable the translation to Dutch? Kind regards -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] [Embedded forms ] Do not create object if not needed
Hi, I'm trying to do something that is close to what is described in http://www.symfony-project.org/advent_calendar/9/en. To start with, I'm using sfDoctrineGuard and I want to be able to define user accounts connected to either Persons or Firms.Person and Firm are two entities that both inherit a common Contact entity. I have added the schema I am using to the end of this message[1]. In the ContactForm class I embedd a subclass[2] of sfGuardUserAdminForm into the form: // in configure() $form = new ContactUserForm($this-getObject()-user ); if ($form-getObject()-id == null) unset($form['id']); $this-embedForm(sfguarduser_id, $form); // and set up a postValidator. $this-mergePostValidator(new ContactUserValidatorSchema()); I have also added a saveEmbeddedForms to the ContactForm class: public function saveEmbeddedForms($con = null, $forms = null) { if (null === $forms) { $user = $this-getValue('sfguarduser_id'); if ($user == null) { $forms = $this-embeddedForms; unset($forms['sfguarduser_id']); } } return parent::saveEmbeddedForms($con, $forms); } The ContactUserValidatorSchema class is also attached, but I think this part of the setup is correctl. What I want to do is that if the username and password fields of the embedded schema are empty, then I do not want a user object to be created. As it stands now, an object is created with the username set to . This only works the first time of course as the username has to be unique. I hope someone has an idea on what I am doing wrong here. I seem to have misunderstood something simple - I just wish I knew what. Tarjei 1. Schema: Contact: columns: firstname: string(255) lastname: string(255) jobRole: string(255) # stilling mobile: string(255) phone: string(255) email: string(255) description: string(255) post_address_id: integer sfguarduser_id: integer(4) relations: postAddress: class: Address type: one foreignType: one foreign: id local: post_address_id cascade: [delete] user: class: sfGuardUser local: sfguarduser_id cascade: [delete] Person: inheritance: extends: Contact type: column_aggregation keyField: type keyValue: 2 (There is also another subclass that I have omitted to make this post as short as possible). 2. class ContactUserForm extends sfGuardUserAdminForm { public function configure() { parent::configure(); foreach (array('username', 'password') as $key ) { $this-validatorSchema[$key]-setOption('required', false); } } } 3. class ContactUserValidatorSchema extends sfValidatorSchema { protected function configure($options = array(), $messages = array ()) { } protected function doClean($values) { $errorSchema = new sfValidatorErrorSchema($this); /* return at once if the values are missing */ if (!isset($values['sfguarduser_id']) || !$values ['sfguarduser_id']) { return $values; } $userFormValues = $values['sfguarduser_id']; $errorSchemaLocal = new sfValidatorErrorSchema($this); // username is filled but no password if ($userFormValues['username'] !$userFormValues['password']) { $errorSchemaLocal-addError(new sfValidatorError($this, 'required'), 'password'); } // password is filled but no username if ($userFormValues['password'] !$userFormValues['username']) { $errorSchemaLocal-addError(new sfValidatorError($this, 'required'), 'username'); } // no password and no username, remove the empty values if (!$userFormValues['username'] !$userFormValues['password']) { unset($values['sfguarduser_id']); } // some error for this embedded-form if (count($errorSchemaLocal)) { $errorSchema-addError($errorSchemaLocal, (string) sfguarduser_id); } // throws the error for the main form if (count($errorSchema)) { throw new sfValidatorErrorSchema($this, $errorSchema); } return $values; } } -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Symfony DataGrid
Hi, with this new release (1.4) I'm found a lot of plugins that didn't apply in this version. as for sfDataGrid. I'm startin a new project and I'm really interested in developing with this framework. Have anyone any idea of how to get a DataGrid plugin for symfony 1.4 / Doctrine 1.2 ?? Is this frmaework suitable for a small ERP application? have anyone of you created an application for sales/customer/invoice/supply managment ? for a scale of 10 users ? Best Regards PS: sorry my english, i'm Spanish speaker. Nicolas Machado -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Customize sfGuardUser
Hi, I'm working with this following schema.yml : # config/doctrine/schema.yml options: collate: utf8_unicode_ci charset: utf8 KiosquePatient: actAs: { Timestampable: ~ } columns: matricule: { type: string(255), notnull: true } naissance: { type: timestamp, notnull: true} sfGuardUserProfile: columns: id: { type: integer, primary: true, autoincrement: true } user_id: { type: integer(4) } firstname: { type: string(255) } lastname: { type: string(255) } email: { type: varchar(255) } relations: User: class: sfGuardUser local: user_id foreign: id type: one foreignType: one foreignAlias: Profile because I want to add new fields in my sfGuardUserForm (firstname , lastname and email). The problem is that I don't know how to display these new fields on my form. I create a new module sfGuardUser add I added in it's generator.yml : form: class: sfGuardUserAdminForm fields: firstname: { label: Prénom } lastname: { label: Nom } display: NONE: [username, password, password_again] Informations personnelles : [firstname, lastname, email] #Permissions and groups: [is_active, is_super_admin, groups_list, permissions_list] Groupes: [is_active, groups_list] After cleared the symfony cache, I want to display my module and Widget firstname does not exist. error appears. Where is my error? Thank you (sorry for my bad english) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Customize sfGuardUser
What symfony version are you using – 1.2 or 1.3/1.4? Daniel On 2009-12-11, at 11/December, 6:25 PM, Julien L wrote: Hi, I'm working with this following schema.yml : # config/doctrine/schema.yml options: collate: utf8_unicode_ci charset: utf8 KiosquePatient: actAs: { Timestampable: ~ } columns: matricule: { type: string(255), notnull: true } naissance: { type: timestamp, notnull: true} sfGuardUserProfile: columns: id: { type: integer, primary: true, autoincrement: true } user_id: { type: integer(4) } firstname: { type: string(255) } lastname: { type: string(255) } email: { type: varchar(255) } relations: User: class: sfGuardUser local: user_id foreign: id type: one foreignType: one foreignAlias: Profile because I want to add new fields in my sfGuardUserForm (firstname , lastname and email). The problem is that I don't know how to display these new fields on my form. I create a new module sfGuardUser add I added in it's generator.yml : form: class: sfGuardUserAdminForm fields: firstname: { label: Prénom } lastname: { label: Nom } display: NONE: [username, password, password_again] Informations personnelles : [firstname, lastname, email] #Permissions and groups: [is_active, is_super_admin, groups_list, permissions_list] Groupes: [is_active, groups_list] After cleared the symfony cache, I want to display my module and Widget firstname does not exist. error appears. Where is my error? Thank you (sorry for my bad english) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Dot and comma
Hi all, i'm working with numbers and currency in symfony and i got a problem: dot and comma. I'm using the Brazilian notation(likes the UK notation : $ 2,00 (two dollars)) . How can i change the US notation to BRL notation ? thanks Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Symfony DataGrid
Symfony is preety good at this, especially when you define your models right. It is a play in the park programmimg this stuff with sf. About the plugin... you can do a svn co for it. Alecs sent via htc magic On Dec 11, 2009 7:16 PM, NicolAS400 nico.mach...@gmail.com wrote: Hi, with this new release (1.4) I'm found a lot of plugins that didn't apply in this version. as for sfDataGrid. I'm startin a new project and I'm really interested in developing with this framework. Have anyone any idea of how to get a DataGrid plugin for symfony 1.4 / Doctrine 1.2 ?? Is this frmaework suitable for a small ERP application? have anyone of you created an application for sales/customer/invoice/supply managment ? for a scale of 10 users ? Best Regards PS: sorry my english, i'm Spanish speaker. Nicolas Machado -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] symfony 1.4 doctrine: few plugins :(
Hi I am starting a new installation and am trying to decide between propel and doctrine. It seems doctrine will become symfony's default orm and symfony 2.0 will drop propel. Plus the symfony installation page recommends symfony 1.4 for new installations. But! Where are the doctrine plugins? On the symfony plugins page, filtering for symfony 1.4 and doctrine plugins I get *one* plugin. Adding symfony 1.3 gets nine plugins :( . Or I am I missing something? Thanks so much for any help or tips. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: symfony 1.4 doctrine: few plugins :(
Yes.. I don't know why. But seems to me that this new version wasen't a good idea. Try to install sfDoctrineGuardPlugin from your CLI... I'm really confused for what is going on. Regards. On Dec 11, 3:37 pm, Roland Cruse cruses...@gmail.com wrote: Hi I am starting a new installation and am trying to decide between propel and doctrine. It seems doctrine will become symfony's default orm and symfony 2.0 will drop propel. Plus the symfony installation page recommends symfony 1.4 for new installations. But! Where are the doctrine plugins? On the symfony plugins page, filtering for symfony 1.4 and doctrine plugins I get *one* plugin. Adding symfony 1.3 gets nine plugins :( . Or I am I missing something? Thanks so much for any help or tips. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] symfony 1.4 doctrine: few plugins :(
Plugins usually take some time to get updated for new versions. Just be patient. On Fri, Dec 11, 2009 at 19:37, Roland Cruse cruses...@gmail.com wrote: Hi I am starting a new installation and am trying to decide between propel and doctrine. It seems doctrine will become symfony's default orm and symfony 2.0 will drop propel. Plus the symfony installation page recommends symfony 1.4 for new installations. But! Where are the doctrine plugins? On the symfony plugins page, filtering for symfony 1.4 and doctrine plugins I get *one* plugin. Adding symfony 1.3 gets nine plugins :( . Or I am I missing something? Thanks so much for any help or tips. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] symfony 1.4 doctrine: few plugins :(
If it doesn't install using plugin:install from cli, then install them manually : download package, unpack it in project/plugins dir and register plugin in the project/config/ProjectConfiguration.class.php using ::enablePlugins() then do a project:validate to see what need to get changed (at best) Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Dec 11, 2009 at 8:00 PM, Gábor Fási maerl...@gmail.com wrote: Plugins usually take some time to get updated for new versions. Just be patient. On Fri, Dec 11, 2009 at 19:37, Roland Cruse cruses...@gmail.com wrote: Hi I am starting a new installation and am trying to decide between propel and doctrine. It seems doctrine will become symfony's default orm and symfony 2.0 will drop propel. Plus the symfony installation page recommends symfony 1.4 for new installations. But! Where are the doctrine plugins? On the symfony plugins page, filtering for symfony 1.4 and doctrine plugins I get *one* plugin. Adding symfony 1.3 gets nine plugins :( . Or I am I missing something? Thanks so much for any help or tips. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: symfony 1.4 doctrine: few plugins :(
Hi! You do not to be confused. I would reccomend you to use sf 1.3. The difference between 1.3 and 1.4 is that the 1.4 has deprecated a lot of stuff that it was available since sf 1.0, but now do not exist anymore. If you are new to symfony i would reccomend to use sf 1.4 and wait from plugins updates from their owners. Also, if you feel that you need doctrine based plugins that you find in 1.2 repo, then use sf 1.3 and install those plugins via svn checkout. That will allow you the chance of using sf 1.2 plugins in your sf 1.3 project. However, sf 1.3 is a transition from sf 1.2 to sf 1.4 as 1.1 was the transition step between 1.0 and 1.2 Please read the upgrade notes. sent via htc magic On Dec 11, 2009 8:45 PM, NicolAS400 nico.mach...@gmail.com wrote: Yes.. I don't know why. But seems to me that this new version wasen't a good idea. Try to install sfDoctrineGuardPlugin from your CLI... I'm really confused for what is going on. Regards. On Dec 11, 3:37 pm, Roland Cruse cruses...@gmail.com wrote: Hi I am starting a new install... -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: problem connecting to my plugin svn repository
after a few password/username changes I finally make it! On 10 Dic, 19:43, mattsister matt...@gmail.com wrote: Just yesterday, I've created my first plugin I've got a problem committing my source to the svn repository... the url is:http://svn.symfony-project.com/plugins/sfPropelTaggableWidgetPlugin/ I use my symfony website credentials to commit to it, but I always get: svn: MKACTIVITY di '/!svn/act/8813a64b-06c6-4585-8c62-bfea2fa84790': authorization failed: Could not authenticate to server: rejected Basic challenge (http://svn.symfony-project.org) Many 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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Symfony DataGrid
Hey Nicolas, yeah, ERP stuff is where symfony really shines. Have a look at http://www.siwapp.org/ for inspiration or for a good starting point. Daniel On Dec 11, 9:15 am, NicolAS400 nico.mach...@gmail.com wrote: Hi, with this new release (1.4) I'm found a lot of plugins that didn't apply in this version. as for sfDataGrid. I'm startin a new project and I'm really interested in developing with this framework. Have anyone any idea of how to get a DataGrid plugin for symfony 1.4 / Doctrine 1.2 ?? Is this frmaework suitable for a small ERP application? have anyone of you created an application for sales/customer/invoice/supply managment ? for a scale of 10 users ? Best Regards PS: sorry my english, i'm Spanish speaker. Nicolas Machado -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Update query issue
Guys, I have an update query in criteria, which is not working, I am not sure why, all the data that is being fed has been cross checked and is present, the fields are correct as well, so here is the query: $d = new Criteria(); $d-add(QuestionsPeer::ID,$questionId); $d-add(QuestionsPeer::QUESTION,$updatedQuestion); $d-add(QuestionsPeer::OPTION1,$updatedOption1); $d-add(QuestionsPeer::OPTION2,$updatedOption2); $d-add(QuestionsPeer::OPTION3,$updatedOption3); $d-add(QuestionsPeer::OPTION4,$updatedOption4); QuestionsPeer::doUpdate($d); The above is in a loop (if method is post then) and it does get inside the loop, so not sure why the above query is not being updated. the first statement is to basically retrieve the object by the primary key! Thanks -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Customize sfGuardUser
I'm on the version 1.4 On 11 déc, 18:37, Daniel Lohse annismcken...@googlemail.com wrote: What symfony version are you using – 1.2 or 1.3/1.4? Daniel On 2009-12-11, at 11/December, 6:25 PM, Julien L wrote: Hi, I'm working with this following schema.yml : # config/doctrine/schema.yml options: collate: utf8_unicode_ci charset: utf8 KiosquePatient: actAs: { Timestampable: ~ } columns: matricule: { type: string(255), notnull: true } naissance: { type: timestamp, notnull: true} sfGuardUserProfile: columns: id: { type: integer, primary: true, autoincrement: true } user_id: { type: integer(4) } firstname: { type: string(255) } lastname: { type: string(255) } email: { type: varchar(255) } relations: User: class: sfGuardUser local: user_id foreign: id type: one foreignType: one foreignAlias: Profile because I want to add new fields in my sfGuardUserForm (firstname , lastname and email). The problem is that I don't know how to display these new fields on my form. I create a new module sfGuardUser add I added in it's generator.yml : form: class: sfGuardUserAdminForm fields: firstname: { label: Prénom } lastname: { label: Nom } display: NONE: [username, password, password_again] Informations personnelles : [firstname, lastname, email] #Permissions and groups: [is_active, is_super_admin, groups_list, permissions_list] Groupes: [is_active, groups_list] After cleared the symfony cache, I want to display my module and Widget firstname does not exist. error appears. Where is my error? Thank you (sorry for my bad english) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Symfony color scheme for Netbeans
Good evening the group ! I just published the color scheme I made. Download it : http://piwam.googlecode.com/files/SymfonyColorScheme.zip Preview : http://www.ze-technology.com/ I set colors for PHP, JS, SQL, YAML, HTML and XML files. Hope you'll enjoy, this is a first release don't hesitate to comment ;-) -- Adrien Mogenet -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: DBFinderPlugin future
You can find my patch for the unit tests here: [ http://pastebin.com/f18abd80b ]. This passes all tests on MySQL. It probably can be improved, but hopefully it is enough to motivate someone to start on the Doctrine part! Greetings, Jan Fabry On Dec 6, 3:53 pm, Daniel Lohse annismcken...@googlemail.com wrote: That is very good news! I'll see what I can do about the Doctrine test part. Maybe when I'm done we could then open a ticket with both patches attached? That would improve the chances of the patch being accepted soon andDbFinderupdated for symfony 1.4. One potential problem is that the admin generator feature relies on symfony 1.0 code and therefore would have to be completely rewritten or entirely removed for the time being. But that is for Francois to decide. :) Cheers, Daniel On 2009-12-06, at 6/December, 3:26 PM, Jan Fabry wrote: On Dec 3, 11:50 am, Daniel Lohse annismcken...@googlemail.com wrote: Alright, there you go, it's really only 2 lines changed at this time. :) Report back if you're hitting any roadblocks but my app uses hydration/joins quite extensively and it works just like before (minus that little bug I mentioned which I have to hunt down today, will report back if it's something to do withDbFinder). I have updated the unit tests for the Propel part, and they all pass with this patch. I did need to rewrite some tests (to adapt them to syntax changes in the output of Propel 1.4, or to make them completely isolated from other tests), but I will wrap up those changes in another post to this list or in a Trac ticket. I did not yet go through the Doctrine or common tests, since that will probably require more work in theDbFindercode - maybe someone with more knowledge of the Doctrine internals could start with that? Greetings, Jan Fabry -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Admin generator translation in sf1.4
Set i18n to true instead of on... Now YAML must be written with true/false. It doesn't accept on/off values anymore. Alexandre 2009/12/11 thomees thown...@gmail.com I've been using the admin generator quite a lot for my Dutch customers. So it was a very handy feature that the admin generator was translated by default. To accomplish that, I used the following settings.yml options: all: .settings: i18n: on default_culture:nl_NL But since I've been using sf1.4, the interface is in English again! Do I have to do something else despite changing these options to enable the translation to Dutch? Kind regards -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Dot and comma
Set the culture when displaying the value : function format_currency($amount, $currency = null, $culture = null) Enjoy, Alexandre 2009/12/11 Augusto Flavio afla...@gmail.com Hi all, i'm working with numbers and currency in symfony and i got a problem: dot and comma. I'm using the Brazilian notation(likes the UK notation : $ 2,00 (two dollars)) . How can i change the US notation to BRL notation ? thanks Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Symfony color scheme for Netbeans
Very nice ;) I'm an Eclipse user, but your job is wonderful ;) +1 RSS reader :) Alex' 2009/12/11 Adrien Mogenet adrien.moge...@gmail.com Good evening the group ! I just published the color scheme I made. Download it : http://piwam.googlecode.com/files/SymfonyColorScheme.zip Preview : http://www.ze-technology.com/ I set colors for PHP, JS, SQL, YAML, HTML and XML files. Hope you'll enjoy, this is a first release don't hesitate to comment ;-) -- Adrien Mogenet -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Customize sfGuardUser
http://www.symfony-project.org/advent_calendar/ You should read day 8 and 9 : extending forms. You will learn how to embed a relation in a form. You must embed the profile form in your user form. Don't mind admin gen, just think about your form, and after that your form works, make it fully appear in your admin gen. 2009/12/11 Julien L loisel@gmail.com I'm on the version 1.4 On 11 déc, 18:37, Daniel Lohse annismcken...@googlemail.com wrote: What symfony version are you using – 1.2 or 1.3/1.4? Daniel On 2009-12-11, at 11/December, 6:25 PM, Julien L wrote: Hi, I'm working with this following schema.yml : # config/doctrine/schema.yml options: collate: utf8_unicode_ci charset: utf8 KiosquePatient: actAs: { Timestampable: ~ } columns: matricule: { type: string(255), notnull: true } naissance: { type: timestamp, notnull: true} sfGuardUserProfile: columns: id: { type: integer, primary: true, autoincrement: true } user_id: { type: integer(4) } firstname: { type: string(255) } lastname: { type: string(255) } email: { type: varchar(255) } relations: User: class: sfGuardUser local: user_id foreign: id type: one foreignType: one foreignAlias: Profile because I want to add new fields in my sfGuardUserForm (firstname , lastname and email). The problem is that I don't know how to display these new fields on my form. I create a new module sfGuardUser add I added in it's generator.yml : form: class: sfGuardUserAdminForm fields: firstname: { label: Prénom } lastname: { label: Nom } display: NONE: [username, password, password_again] Informations personnelles : [firstname, lastname, email] #Permissions and groups: [is_active, is_super_admin, groups_list, permissions_list] Groupes: [is_active, groups_list] After cleared the symfony cache, I want to display my module and Widget firstname does not exist. error appears. Where is my error? Thank you (sorry for my bad english) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Update query issue
Have a look at that : http://snippets.symfony-project.org/snippet/50 Looks like you have two criterias : 1 to specify how to find records to update, and 2 to define what you change. Alexandre 2009/12/11 Parijat Kalia kaliapari...@gmail.com Guys, I have an update query in criteria, which is not working, I am not sure why, all the data that is being fed has been cross checked and is present, the fields are correct as well, so here is the query: $d = new Criteria(); $d-add(QuestionsPeer::ID,$questionId); $d-add(QuestionsPeer::QUESTION,$updatedQuestion); $d-add(QuestionsPeer::OPTION1,$updatedOption1); $d-add(QuestionsPeer::OPTION2,$updatedOption2); $d-add(QuestionsPeer::OPTION3,$updatedOption3); $d-add(QuestionsPeer::OPTION4,$updatedOption4); QuestionsPeer::doUpdate($d); The above is in a loop (if method is post then) and it does get inside the loop, so not sure why the above query is not being updated. the first statement is to basically retrieve the object by the primary key! Thanks -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] 1.4 dev performance is slo....w
I've created a simple website (.alexandre-salome.fr), 140ms to generate the page in dev. With the debug bar, you can identify which part is slow : Just click on the clock :P 2009/12/11 Ashton ashton.k...@gmail.com Since upgrading from 1.2.8 to 1.4.1, I've noticed a significant dip in overall execution time in the dev environment, which makes the task of developing slower - as I wait that extra second or so for pages to load. while i appreciate that the new debug toolbar is giving me even more useful info like the View pane, this extra logging is slowing down my development productivity, which is frustrating. Just wondering if anyone else is experiencing the same 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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Making Symfony Web Site Secure
An error i've recently discovered : bad credential definition. Define some functional tests to check credentials, create paranoid definition... there are differents technicals to prevent security backdoors. 2009/12/11 Augusto Flavio afla...@gmail.com Hi, yes, exists anothers kinds of attacks like SQL injection (but the symfony prevents it). Another thing that you need pay atention is the command injection(exec, system, passthru). A good way to prevents this problem is escape the shell output. I believe that with the XSS and CSRF, in most cases, your site will be secure. It will depends in what kind of service your application provides. bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: var_dump Doctrine_Record
Well, if I understand the problem : - You always get string values for columns - You define a schema with only string values Are you... sure of your problem ? 2009/12/11 Salim salim.semao...@gmail.com No answers ? On 10 déc, 10:02, Salim salim.semao...@gmail.com wrote: Here is an sample of the schema : Place: actAs: I18n: fields: - name - number - address - postal_box - cedex - city - zip_code - country - tel - fax - email - website - presentation - image connection: via_france columns: lon:float lat:float name: string(255) number: string(255) address:string(255) postal_box: string(255) cedex: string(255) city: string(255) zip_code: string(255) insee: string(10) country_id: string(2) country:string(255) tel:string(255) fax:string(255) email: string(255) website:string(255) presentation: string(4000) image: string(255) stars: integer On 9 déc, 17:45, Serkan Koyuncu serkan.koyu...@gmail.com wrote: Could you please post your schema? Regards, S. 2009/12/9 Salim salim.semao...@gmail.com: PS : I am using Symfony 1.2 with Doctrine 1.1 On 9 déc, 17:03, Salim salim.semao...@gmail.com wrote: Hi all, After inspecting several doctrine records on my project, I realized that every field of these records was casted into strings whatever the type declared for the column in the schema.yml file. Is it a known issue, or am I missing something ? Thank's in advance for your help -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Routing different in prod and dev
Edit your index.php file and modify the false, attribute, set to true. It will display errors. 2009/12/9 Pancho fcola...@gmail.com any solution ? On 29 nov, 23:08, ashton ahonn...@gmail.com wrote: I'm struggling with aroutingissue. New project, and I have an index module, and a 'list' action and 'index' action. These urls work: /frontend_dev.php/index/index (in dev) /index/index /frontend_dev.php/index/list this does not: /index/list here is myrouting.yml: # default rules homepage: url: / param: { module: index, action: index } default_index: url: /:module param: { action: index } default: url: /:module/:action/* I don't know what is wrong with the prodcution one, because all the errors are suppressed. Or, alternatively, my problem is that I can't enable logging or web_debug for production: settings.yml: prod: .settings: error_reporting:?php echo (E_ALL | E_STRICT).\n ? no_script_name: on logging_enabled:on web_debug: on with my settings.yml like this, the log dir still only contains frontend_dev.php and backend_dev.php, and the web debug toolbar doesn't show up in production. thanks ashton -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] How to use doctrine tasks only for a given connection?
On Fri, Dec 11, 2009 at 2:59 PM, Thomas Rabaix thomas.rab...@gmail.com wrote: If your third party software need a specific connection, just define the connection in 'all' section with a specific name. Then just get the connection with the doctrine manager. So you can have : all: global connections prod: prod specific connections dev: dev specific connections Does it make sense ? 1. Maybe, but I think the previous way to target a specific connection name was far more convenient. Anyway. 2. Now imagine you want to re(build|load) your models ; how would you prevent the original third-part database to be dropped and recreated by the task command? -- Nicolas Perriault http://prendreuncafe.com - http://symfonians.net Mobile: +33 660 92 08 67 -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Customize sfGuardUser
No, that's not entirely correct as the sfDoctrineGuardPlugin automatically merges the profile form. And because you're on symfony 1.4, just delete the sfGuardUserProfile which is not needed on symfony 1.4, just add the sfGuardUser model to your schema and add the additiional fields. The new stuff in symfony takes care of merging all the existing schema files. You. Don't. Need. Profiles. In. sfDoctrineGuardPlugin. Anymore. :) Cheers, Daniel On 2009-12-11, at 11/December, 11:28 PM, Alexandre Salomé wrote: http://www.symfony-project.org/advent_calendar/ You should read day 8 and 9 : extending forms. You will learn how to embed a relation in a form. You must embed the profile form in your user form. Don't mind admin gen, just think about your form, and after that your form works, make it fully appear in your admin gen. 2009/12/11 Julien L loisel@gmail.com I'm on the version 1.4 On 11 déc, 18:37, Daniel Lohse annismcken...@googlemail.com wrote: What symfony version are you using – 1.2 or 1.3/1.4? Daniel On 2009-12-11, at 11/December, 6:25 PM, Julien L wrote: Hi, I'm working with this following schema.yml : # config/doctrine/schema.yml options: collate: utf8_unicode_ci charset: utf8 KiosquePatient: actAs: { Timestampable: ~ } columns: matricule: { type: string(255), notnull: true } naissance: { type: timestamp, notnull: true} sfGuardUserProfile: columns: id: { type: integer, primary: true, autoincrement: true } user_id: { type: integer(4) } firstname: { type: string(255) } lastname: { type: string(255) } email: { type: varchar(255) } relations: User: class: sfGuardUser local: user_id foreign: id type: one foreignType: one foreignAlias: Profile because I want to add new fields in my sfGuardUserForm (firstname , lastname and email). The problem is that I don't know how to display these new fields on my form. I create a new module sfGuardUser add I added in it's generator.yml : form: class: sfGuardUserAdminForm fields: firstname: { label: Prénom } lastname: { label: Nom } display: NONE: [username, password, password_again] Informations personnelles : [firstname, lastname, email] #Permissions and groups: [is_active, is_super_admin, groups_list, permissions_list] Groupes: [is_active, groups_list] After cleared the symfony cache, I want to display my module and Widget firstname does not exist. error appears. Where is my error? Thank you (sorry for my bad english) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Update query issue
Thanks Alexander, but looks like that one is out of date...anyone else with an idea? Correct me if I am wrong, because I tried what Alexander had to say but that did not work at all. On Fri, Dec 11, 2009 at 2:30 PM, Alexandre Salomé alexandre.sal...@gmail.com wrote: Have a look at that : http://snippets.symfony-project.org/snippet/50 Looks like you have two criterias : 1 to specify how to find records to update, and 2 to define what you change. Alexandre 2009/12/11 Parijat Kalia kaliapari...@gmail.com Guys, I have an update query in criteria, which is not working, I am not sure why, all the data that is being fed has been cross checked and is present, the fields are correct as well, so here is the query: $d = new Criteria(); $d-add(QuestionsPeer::ID,$questionId); $d-add(QuestionsPeer::QUESTION,$updatedQuestion); $d-add(QuestionsPeer::OPTION1,$updatedOption1); $d-add(QuestionsPeer::OPTION2,$updatedOption2); $d-add(QuestionsPeer::OPTION3,$updatedOption3); $d-add(QuestionsPeer::OPTION4,$updatedOption4); QuestionsPeer::doUpdate($d); The above is in a loop (if method is post then) and it does get inside the loop, so not sure why the above query is not being updated. the first statement is to basically retrieve the object by the primary key! Thanks -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Unable to Update Propel Many-to-Many relationships with multi-column PK
I have an object ApplicationProfile which represents a many-to-many object: table name=application_profile column name=application_id type=INTEGER primaryKey=true required=true/ column name=profile_id type=INTEGER primaryKey=true required=true/ column name=is_confirmed type=BOOLEAN required=true default=0 defaultExpr=0/ foreign-key name=application_id foreignTable=application onDelete=cascade reference local=application_id foreign=application_id/ /foreign-key foreign-key name=fk_profile_id foreignTable=profiles onDelete=cascade reference local=profile_id foreign=profileid/ /foreign-key /table When making modifications to an ApplicationProfile object which already exists in the db I'm having trouble saving this object. While I can save modifications to is_confirmed, I'm unable to modify either of columns which are used as the primary key. This appears to be due to how the Propel generated ApplicationProfilePeer doUpdate method works. It uses the primary key to retrieve the records to update however if you've modified the pk (in this example say you modified one of the columns which make up the profile_id) then it is unable to find the correct column to modify. public static function doUpdate($values, PropelPDO $con = null) [...] $criteria = $values-buildCriteria(); // gets full criteria $selectCriteria = $values-buildPkeyCriteria(); // gets criteria w/ primary key(s) [...] I'm wondering if this is due to a configuration issue... eg. the doUpdate method gets generated differently when the schema.xml is properly configured. Or if doUpdate simply can't/doesn't support this sort of modification. At the moment the only way to get around this issue appears to be to add a separate single column primary key to the lookup table. (pk_application_profile, application_id, profile_id) Another option would perhaps be to modify doUpdate however it unclear how you would provide it the unmodified value to use in retrieving the original record. Any suggestions? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: symfony 1.4 doctrine: few plugins :(
hmmm, choices choices. But you can not have your cake and eat it too. Thanks to all for the feed back. I am better armed for my decision. On Fri, Dec 11, 2009 at 11:12 AM, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Hi! You do not to be confused. I would reccomend you to use sf 1.3. The difference between 1.3 and 1.4 is that the 1.4 has deprecated a lot of stuff that it was available since sf 1.0, but now do not exist anymore. If you are new to symfony i would reccomend to use sf 1.4 and wait from plugins updates from their owners. Also, if you feel that you need doctrine based plugins that you find in 1.2 repo, then use sf 1.3 and install those plugins via svn checkout. That will allow you the chance of using sf 1.2 plugins in your sf 1.3 project. However, sf 1.3 is a transition from sf 1.2 to sf 1.4 as 1.1 was the transition step between 1.0 and 1.2 Please read the upgrade notes. sent via htc magic On Dec 11, 2009 8:45 PM, NicolAS400 nico.mach...@gmail.com wrote: Yes.. I don't know why. But seems to me that this new version wasen't a good idea. Try to install sfDoctrineGuardPlugin from your CLI... I'm really confused for what is going on. Regards. On Dec 11, 3:37 pm, Roland Cruse cruses...@gmail.com wrote: Hi I am starting a new install... -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] file_link_format for PDT/eclipse
Hi First check If You can load a specific file when running Your IDE. I have managed to get this working with netbeans and to open a file in netbeans it is just to run: netbeans FILE_PATH:LINE_NUMBER Check what it looks like in PDT and adjust those instructions accodringly. So assuming that You are using firefox 3 and Linux and have /usr/bin/php binary available: 1. add custom protocol to firefox following instructions from here: http://kb.mozillazine.org/Register_protocol#Firefox_3.5_specific__.28works_without_installed_Gnome_libraries.29 For our case You need to replace foo with editor 2. create script on Your disk with following content, lets say that you name it pdt-firefox-launcher: #!/usr/bin/php ?php $arg = urldecode( str_replace( 'editor:', '', $_SERVER['argv'][1] ) ); $data = explode( ':', $arg ); $file = $data[0]; $line = $data[1]; passthru( PATH_TO_PDT_EXECUTABLE $file:$line ); ? make it executable: chmod +x pdt-firefox-launcher 3. in settings.yml set file_link_format value like that: all: .settings: file_link_format: editor:%f:%l Now when You will see some exceptin dump from symfony application file names should be links like editor:FILE_PATH:LINE_NUMBER. When You click this link firefox should ask You to specify which program to run for that kind of links - point it to Your pdt-firefox-launcher script created earlier Thats it - from now on every link should open up PDT with specified file Good luck -- Best regards Lukasz Wojciechowski New Generation Software +48 602 214 629 http://www.ngsoft.pl 2009/12/11 klemens_u klem...@ull.at: Hi everybody, I just read about the file_link_format option of symfony / xdebug in the advent calendar: http://www.symfony-project.org/advent_calendar/4/en Does anyone know how to setup this for PDT/Eclipse? Thanks, Klemens :-) -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Anybody with leads Update query issue
Guys, I have an update query in criteria, which is not working, I am not sure why, all the data that is being fed has been cross checked and is present, the fields are correct as well, so here is the query: $d = new Criteria(); $d-add(QuestionsPeer::ID,$questionId); $d-add(QuestionsPeer::QUESTION,$updatedQuestion); $d-add(QuestionsPeer::OPTION1,$updatedOption1); $d-add(QuestionsPeer::OPTION2,$updatedOption2); $d-add(QuestionsPeer::OPTION3,$updatedOption3); $d-add(QuestionsPeer::OPTION4,$updatedOption4); QuestionsPeer::doUpdate($d); The above is in a loop (if method is post then) and it does get inside the loop, so not sure why the above query is not being updated. the first statement is to basically retrieve the object by the primary key! Thanks -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Making Symfony Web Site Secure
Thanks for the reply. I am using CSRF Plugin and enable in filters.yml. Now everytime I click on any link in my web site, I get the error CSRF attack detected. How do I prevent that ? Thanks Deepak On Sat, Dec 12, 2009 at 4:20 AM, Alexandre Salomé alexandre.sal...@gmail.com wrote: An error i've recently discovered : bad credential definition. Define some functional tests to check credentials, create paranoid definition... there are differents technicals to prevent security backdoors. 2009/12/11 Augusto Flavio afla...@gmail.com Hi, yes, exists anothers kinds of attacks like SQL injection (but the symfony prevents it). Another thing that you need pay atention is the command injection(exec, system, passthru). A good way to prevents this problem is escape the shell output. I believe that with the XSS and CSRF, in most cases, your site will be secure. It will depends in what kind of service your application provides. bye. Augusto Morais -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- Alexandre Salomé http://alexandre-salome.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: CSRF Module - sfException
Hi, I am using symfony 1.1 and installed plugin for CSRF and enabled in the filters.yml. Now if I click any link in my website, I get the following error as below. Please help. Thanks Deepak CSRF attack detected. stack trace - at **() in * SF_ROOT_DIR/lib/vendor/sfCSRFPlugin-1.0.0/lib/sfCSRFFilter.class.php*line 27 ... https://10.0.1.66/wbrt/web/tool_staging.php/login/home# 1. // error if no token or if token is not valid 2. if (!$requestToken || md5($secret.session_id()) != $requestToken) 3. { 4. throw new sfException('CSRF attack detected.'); 5. } 6. } -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Still stuck on a basic update
Guys, can anyone one of you help me with this, I want to write an update query, but somehow I am getting it wrong... Here is the raw sql query I wish to write UPDATE QuestionsPeer SET QuestionsPeer.column1 = 'somevalue', QuestionsPeer.column2 = 'someValue' WHERE QuestionsPeer.ID = 'some ID' for which I use the following criteria $d = new Criteria(); $d-add(QuestionsPeer::ID,$questionId); $d-add(QuestionsPeer::QUESTION,$somevalue); $d-add(QuestionsPeer::OPTION1,$someOthervalue); QuestionsPeer::doUpdate($d); this does not carry out the update...so I am not sure what is going wrong. Any one ??? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.