[symfony-users] Re: Lucene-Search
@pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote in the first post :-( Is there an alternative PHP-Search-Engine to Zend Lucene? Sphinx is a good alternative, I did not use it personally but my colleagues have and they are content with it. It very much depends on what exactly you try to accomplish, maybe the in-database search is enough for you if you have a small data set and have no special requirements for the free text search part. If this is the case you may consider also: - MySQL Free text search. - Doctrine Searchable behavio gabriel On 1 Jun., 21:53, pghoratiu pghora...@gmail.com wrote: Lucene is not slow, only the Zend PHP re-implementation of the Lucene file format + search. In my opinion it's close to unusable for real life scenarios (large data set, fast indexing ...). It probably would work ok for a small dataset such as 1. I recomend Solr as alternative which is Java Lucene service + XML API for access (and much more). As for the search part you need to define your exact document model, the basic entity used in search is the document that has several properties. There is usually one field to be used for full text search and several other fields that you use for structured search (e.g. date, tags). gabriel On Jun 1, 8:13 pm, comb sa...@gmx.net wrote: Hi! I have 5 different Models that I want to be searchable. I don't know, how to implement the search right now. First thing I think of is Zend Lucene, but I read several times, that the performance is bad (cannot use the java implementation). No my question is: where is the limit of Zend Lucene? I expect about 1000-10.000 records per Model and a maximum of 100 search-requests per minute. (probably 1-10 per minute average) Can Zend Lucene handle that amount? Is there an other (PHP-)library that I could do the searching with, if Lucene is to slow? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] how to deal with pagination?
hi guys! i'm just new to symfony. i can already list data from my database but now needs to be paginated. hope you can help me! thanks!!! my routing.yml list_laptops_by_popularity: url: /laptop/list-by-popularity param: { module: laptop, action: listByPopularity } class: sfDoctrineRoute options: { model: Laptop, type: object } this is from my action: public function executeListByPopularity(sfWebRequest $request) { $this-laptops = Doctrine::getTable('Laptops')- getPopularLaptops(); } this is for my template(output) ?php foreach ( $laptops as $k ) { echo $k-brand; } ? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] how to deal with pagination?
Am 02.06.2010 08:22, schrieb mel_06: hi guys! i'm just new to symfony. i can already list data from my database but now needs to be paginated. hope you can help me! thanks!!! Did you read the Practical Symfony Howto? It seems not, because theres Pagination in an example: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Multiple element index. easy way?
Hi all, I'd like to use my frontend in a similar way as the backend. In the index of objects of a model I'd like to select any with a checkbox, submit to generate a new index with only selected ones and then operate several actions on them. Is there an easy way to do it with symfony or do I have to code a lot? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Read only/HTML form widget
I think it would be wise to combine sfWidgetFormDiv with sfValidatorReadOnlyField from the snippet. On 1 čvn, 23:34, Tarjei Huse tar...@scanmine.com wrote: Hi again, after looking further on the issue, I ended up with a widget that does this. See:http://trac.symfony-project.org/attachment/ticket/8726/sfWidgetFormDi... On 06/01/2010 03:41 PM, Tarjei Huse wrote: On 06/01/2010 02:54 PM, Thibault Jouannic wrote: Hi, http://snippets.symfony-project.org/snippet/387 Jolly good! Have you asked for it's inclusion into sfForm main? IMHO it deserves to be there :) Tarjei You're welcome :) Thibault. On Jun 1, 11:16 am, Tarjei Huse tar...@scanmine.com wrote: Hi, This is something I quite often miss and therefore I would guess there is a solution for it. Quite often I want a field from an object shown in my form in a read only fashion. I.e the user sees the field but cannot edit it. Also, has someone created a simple widget for adding HTML elements into a form? Kind regards, Tarjei -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Read only/HTML form widget
You can make any form field read/only this way: example: $this-widgetSchema['xatcode'] = new sfWidgetFormInput(array(), array('readonly'='readonly')); regards norbert haigermoser Am 6/2/10 10:21 AM, schrieb Tom Ptacnik: I think it would be wise to combine sfWidgetFormDiv with sfValidatorReadOnlyField from the snippet. On 1 čvn, 23:34, Tarjei Husetar...@scanmine.com wrote: Hi again, after looking further on the issue, I ended up with a widget that does this. See:http://trac.symfony-project.org/attachment/ticket/8726/sfWidgetFormDi... On 06/01/2010 03:41 PM, Tarjei Huse wrote: On 06/01/2010 02:54 PM, Thibault Jouannic wrote: Hi, http://snippets.symfony-project.org/snippet/387 Jolly good! Have you asked for it's inclusion into sfForm main? IMHO it deserves to be there :) Tarjei You're welcome :) Thibault. On Jun 1, 11:16 am, Tarjei Husetar...@scanmine.com wrote: Hi, This is something I quite often miss and therefore I would guess there is a solution for it. Quite often I want a field from an object shown in my form in a read only fashion. I.e the user sees the field but cannot edit it. Also, has someone created a simple widget for adding HTML elements into a form? Kind regards, Tarjei -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: how to deal with pagination?
found this link! very simple to understand and it works! http://www.achari.in/pagination-using-pager-with-doctrine-sfdoctrinepager-symfony-php-mvc-framework On Jun 2, 2:28 pm, Ben Bieker m...@ben-bieker.de wrote: Am 02.06.2010 08:22, schrieb mel_06: hi guys! i'm just new to symfony. i can already list data from my database but now needs to be paginated. hope you can help me! thanks!!! Did you read the Practical Symfony Howto? It seems not, because theres Pagination in an example: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: method_backned
try var_dump in the action. In what template do you access the $test variable? in the IndexSucces, or in some partial? On 1 čvn, 13:11, safa boubekri boubekri.s...@gmail.com wrote: i add try var_dump($this-test ); but i have Undefined property: sfPHPView::$test for getTotals public function getTotals() { return $this-createQuery('c')- SELECT('SUM(c.montant) FROM c')-execute(); } thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: method_backned
i try it it's gives me white page -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: CSS and Javascript paths
Thanks for the replies. @Florian, that solution didn't work. My webpage was all blank when i add that to the .htaccess I don't want my CSS, JS, Images stored inside in the web/appx/ directory, i want store them all in web/ -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] dsExtDirectPlugin and plugins-modules
Hi list, I have generated a plugin with a module and declared, using doc annotations, a extdirect service. It looks like the dsExtDirect task does not take care of the plugin modules, so I guess this has been forgotten. I'm going to change the task so it supports generating API specs for plugins-modules (the ones declared as enabled in settings.yml). Hope I'll make it work and can deliver it as enhancement. Cheers, -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] generare_csv
HELLO how can i genrate csv which contain the result of table thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] can't get sfWidgetFormInputFile to work in the admin
Hi, I'm having a problem when trying to upload images with admin generator. No matter what I try, I always get a string Array in the database field, and the image is not uploaded to the folder. Here's the model : HdMedia: actAs: { Timestampable: ~ } columns: url: { type: string(255), notnull: true } title: { type: string(255) } description: { type: string(4000) } mediatype_id: { type: integer, notnull: true } creator_id: { type: integer(4) } And the form widget and validator : $this-widgetSchema['url'] = new sfWidgetFormInputFileEditable(array( 'edit_mode'=false, 'with_delete'=false, 'file_src' = '' )); $this-validatorSchema['url'] = new sfValidatorFile(array( 'required' = true, 'path' = sfConfig::get('sf_upload_dir').'/images', 'mime_types' = 'web_images', 'validated_file_class' = 'FileValidator' )); The rest (model, template, actions) is generated by symfony. have anyone had this problem ? Thanks, John -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] how to retrieve security settings for a route
he folks, is it possible to fluently retrieve the security settings for a route (module action pair)? i would love to have something like this: $route-getSecuritySettings(); it should be independed where the security settings are defined (plugin, app, module) im struggeling around with various approaches, but none of them is pretty. please help cheerz robert -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: dsExtDirectPlugin and plugins-modules
Aaah just found the answer; it is managed via the app_ds_ext_direct_plugin_include_plugins :-) Thank you ! On 2 juin, 11:14, Stéphane ERARD stephane.er...@gmail.com wrote: Hi list, I have generated a plugin with a module and declared, using doc annotations, a extdirect service. It looks like the dsExtDirect task does not take care of the plugin modules, so I guess this has been forgotten. I'm going to change the task so it supports generating API specs for plugins-modules (the ones declared as enabled in settings.yml). Hope I'll make it work and can deliver it as enhancement. Cheers, -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Multiple element index. easy way?
Why not use the admin-generator for the frontend, too? You then can individualize templates and actions for your needs. On 2 Jun., 09:32, Cosimo Zecchi c.zec...@gmail.com wrote: Hi all, I'd like to use my frontend in a similar way as the backend. In the index of objects of a model I'd like to select any with a checkbox, submit to generate a new index with only selected ones and then operate several actions on them. Is there an easy way to do it with symfony or do I have to code a lot? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Lucene-Search
Thanks! I'm going for the doctrine searchable behavior. Here is what I found useful to keep in mind for maybe later purpose: This thread here: http://groups.google.com/group/symfony-users/browse_thread/thread/8c24a4e37c9cadf8 Doctrine Behavior Searchable: http://www.doctrine-project.org/projects/orm/1.2/docs/manual/searching/nl http://www.symfony-project.org/plugins/sfSphinxPlugin http://www.symfony-project.org/plugins/sfLucenePlugin/0_1_6 outdated? http://www.symfony-project.org/plugins/tjSolrDoctrineBehaviorPlugin http://www.tschitschereengreen.com/blog/index.php/2008/08/13/using-sphinx-with-symfony/ http://www.symfony-project.org/plugins/sfSphinxPlugin/0_0_8 Thanks to all! comb On 2 Jun., 08:02, pghoratiu pghora...@gmail.com wrote: @pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote in the first post :-( Is there an alternative PHP-Search-Engine to Zend Lucene? Sphinx is a good alternative, I did not use it personally but my colleagues have and they are content with it. It very much depends on what exactly you try to accomplish, maybe the in-database search is enough for you if you have a small data set and have no special requirements for the free text search part. If this is the case you may consider also: - MySQL Free text search. - Doctrine Searchable behavio gabriel On 1 Jun., 21:53, pghoratiu pghora...@gmail.com wrote: Lucene is not slow, only the Zend PHP re-implementation of the Lucene file format + search. In my opinion it's close to unusable for real life scenarios (large data set, fast indexing ...). It probably would work ok for a small dataset such as 1. I recomend Solr as alternative which is Java Lucene service + XML API for access (and much more). As for the search part you need to define your exact document model, the basic entity used in search is the document that has several properties. There is usually one field to be used for full text search and several other fields that you use for structured search (e.g. date, tags). gabriel On Jun 1, 8:13 pm, comb sa...@gmx.net wrote: Hi! I have 5 different Models that I want to be searchable. I don't know, how to implement the search right now. First thing I think of is Zend Lucene, but I read several times, that the performance is bad (cannot use the java implementation). No my question is: where is the limit of Zend Lucene? I expect about 1000-10.000 records per Model and a maximum of 100 search-requests per minute. (probably 1-10 per minute average) Can Zend Lucene handle that amount? Is there an other (PHP-)library that I could do the searching with, if Lucene is to slow? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] sfGuardDoctrinePlugin authentication for all apps
There is any chance to use sfGuardDoctrinePlugin to authentication in all my apps? I mean, i have app1, app2 and app3. If i do a login in app3, app2 and app1 will be able to know i'm already authenticated and will allow me to enter. There is any chance to do this? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: can't get sfWidgetFormInputFile to work in the admin
Nevermind, I was trying to extend the HdMediaForm class with two classes : HdMediaImageForm and HdMediaVideoForm. That's why it didn't work... On 2 juin, 11:21, John drskulls...@gmail.com wrote: Hi, I'm having a problem when trying to upload images with admin generator. No matter what I try, I always get a string Array in the database field, and the image is not uploaded to the folder. Here's the model : HdMedia: actAs: { Timestampable: ~ } columns: url: { type: string(255), notnull: true } title: { type: string(255) } description: { type: string(4000) } mediatype_id: { type: integer, notnull: true } creator_id: { type: integer(4) } And the form widget and validator : $this-widgetSchema['url'] = new sfWidgetFormInputFileEditable(array( 'edit_mode'=false, 'with_delete'=false, 'file_src' = '' )); $this-validatorSchema['url'] = new sfValidatorFile(array( 'required' = true, 'path' = sfConfig::get('sf_upload_dir').'/images', 'mime_types' = 'web_images', 'validated_file_class' = 'FileValidator' )); The rest (model, template, actions) is generated by symfony. have anyone had this problem ? Thanks, John -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] sfGuardDoctrinePlugin authentication for all apps
Are all the apps on the same subdomain? On 6/2/10, wueb webmaster@gmail.com wrote: There is any chance to use sfGuardDoctrinePlugin to authentication in all my apps? I mean, i have app1, app2 and app3. If i do a login in app3, app2 and app1 will be able to know i'm already authenticated and will allow me to enter. There is any chance to do this? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Sent from my mobile device -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] sfGuardDoctrinePlugin authentication for all apps
I mean *domain* :-) On 6/2/10, Tom Haskins-Vaughan t...@templestreetmedia.com wrote: Are all the apps on the same subdomain? On 6/2/10, wueb webmaster@gmail.com wrote: There is any chance to use sfGuardDoctrinePlugin to authentication in all my apps? I mean, i have app1, app2 and app3. If i do a login in app3, app2 and app1 will be able to know i'm already authenticated and will allow me to enter. There is any chance to do this? thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Sent from my mobile device -- Sent from my mobile device -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] generare_csv
How far have you got? On 6/2/10, safa boubekri boubekri.s...@gmail.com wrote: HELLO how can i genrate csv which contain the result of table thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Sent from my mobile device -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] generare_csv
i put this code in the action public function executeCreate() $this-association = Doctrine_Query::create()-from('association')-execute(); $this-getResponse()-setContentType('application/csv-tab-delimited-table','charset=UTF-8'); $this-getResponse()-addHttpMeta('content-disposition: ', 'attachment; filename='.resultat.'.csv', true); $this-getResponse()-send(); } but i dont have thedata of table asscoiation -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] how to deal with pagination?
You should definitely real the Practical Symfony guide. It'll answer a lot of questions that you might not even know need to be asked. Starting off on the right foot is going to make your life a lot easier in the long run. Good luck! On Wednesday, June 2, 2010, mel_06 06melc...@gmail.com wrote: found this link! very simple to understand and it works! http://www.achari.in/pagination-using-pager-with-doctrine-sfdoctrinepager-symfony-php-mvc-framework On Jun 2, 2:28 pm, Ben Bieker m...@ben-bieker.de wrote: Am 02.06.2010 08:22, schrieb mel_06: hi guys! i'm just new to symfony. i can already list data from my database but now needs to be paginated. hope you can help me! thanks!!! Did you read the Practical Symfony Howto? It seems not, because theres Pagination in an example: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/07 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] __tostring
On Tue, 1 Jun 2010, safa boubekri wrote: *class paiment extends BasePaiment { public function __toString() { return $this-getPerson()-__toString(); }* * * *but the id_person is style number* What is 'style number' ? -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: sfGuardDoctrinePlugin authentication for all apps
Yes they are! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] __tostring
in the table paimnentthe id_person is still number i want that it will be give me the nom prenom of person i hope that is clear thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] generare_csv
There are a few pieces to this puzzle, and the quickest way to cover them is to read Day 14 of the Jobeet tutorial: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/14 It will demonstrated how to create an atom feed, but the concept is the same, you'll just be outputting CSV instead of atom. On Wed, Jun 2, 2010 at 7:26 AM, safa boubekri boubekri.s...@gmail.comwrote: i put this code in the action public function executeCreate() $this-association = Doctrine_Query::create()-from('association')-execute(); $this-getResponse()-setContentType('application/csv-tab-delimited-table','charset=UTF-8'); $this-getResponse()-addHttpMeta('content-disposition: ', 'attachment; filename='.resultat.'.csv', true); $this-getResponse()-send(); } but i dont have thedata of table asscoiation -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] generare_csv
thank you -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] sfFacebookConnectPlugin - getCurrentFacebookUid() returns NULL
Concerning feed streaming, you can have a look on a task implemented in the plugin: sfFacebookConnectPlugin/lib/task/facebookgeneratefeedTask.class.php It could be a good start, i guess However you can do your own stuff, and use directly the Facebook (old) API : sfFacebook::getFacebookApi()-stream_publish On 1 juin 2010, at 12:44, Raphael wrote: Hi there, I am trying to implement a simple Facebook connect on my website using sfFacebookConnectPlugin, Symfony 1.4 and Doctrine but I am not sure I am doing it right... Everything works fine up to the point where a guardUser is created and logged in after the user clicks the connect with facebook button but after that, the $sf_user-getCurrentFacebookUid() always return NULL (as well as sfFacebook::getFacebookClient()-get_loggedin_user()) the GuardUser created in the DB has a valid Facebook UID though... Am I missing something? Is it normal and should I use the FBuid stored in the db rather than get_loggedin_user()? Additional question: does the plugin provide a way to publish news feeds? I didn't find any documentation on this... Thanks!! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- Maxime Teneur La Netscouade -- Études, Communication, Influence, Participation -- t: +33 (0)1 44 74 36 74 m: +33(0)6 73 34 47 49 8 passage Brulon, 75012 Paris maxime.ten...@lanetscouade.com www.lanetscouade.com -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: sfGuardDoctrinePlugin authentication for all apps
I found it. Just need declare in every factories.yml the same name for the cookie. storage: class: sfSessionStorage param: session_name: cookieName -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Read only/HTML form widget
On 06/02/2010 10:40 AM, Norbert Haigermoser wrote: You can make any form field read/only this way: example: $this-widgetSchema['xatcode'] = new sfWidgetFormInput(array(), array('readonly'='readonly')); Hmm, this is the best way so far - although being able to affect the markup is a good nr .2. I'll use this or the widget I created - depending on my usecases. Thanks for the tip. Regards, Tarjei regards norbert haigermoser Am 6/2/10 10:21 AM, schrieb Tom Ptacnik: I think it would be wise to combine sfWidgetFormDiv with sfValidatorReadOnlyField from the snippet. On 1 čvn, 23:34, Tarjei Husetar...@scanmine.com wrote: Hi again, after looking further on the issue, I ended up with a widget that does this. See:http://trac.symfony-project.org/attachment/ticket/8726/sfWidgetFormDi... On 06/01/2010 03:41 PM, Tarjei Huse wrote: On 06/01/2010 02:54 PM, Thibault Jouannic wrote: Hi, http://snippets.symfony-project.org/snippet/387 Jolly good! Have you asked for it's inclusion into sfForm main? IMHO it deserves to be there :) Tarjei You're welcome :) Thibault. On Jun 1, 11:16 am, Tarjei Husetar...@scanmine.com wrote: Hi, This is something I quite often miss and therefore I would guess there is a solution for it. Quite often I want a field from an object shown in my form in a read only fashion. I.e the user sees the field but cannot edit it. Also, has someone created a simple widget for adding HTML elements into a form? Kind regards, Tarjei -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] batch import
I'm looking into doing batch imports with a symfony task. The issues I'm having are seg faults and running out of memory. Even after jacking the memory limit to 2gigs. Has anyone else ever done batch imports using a symfony task that can shed some light on how they did it? -f1g -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Lucene-Search
I'm using it for one of my web sites, I used the example that was included in the tutorial, then customized it to what I need. Need to go over it again see if I can optimize it any. I also made 2 symfony tasks, the first rebuilt the index and the second optimized it. As mentioned before, it can be a little slow but found that using optimize helped it a little. -f1g On Jun 2, 6:27 am, comb sa...@gmx.net wrote: Thanks! I'm going for the doctrine searchable behavior. Here is what I found useful to keep in mind for maybe later purpose: This thread here:http://groups.google.com/group/symfony-users/browse_thread/thread/8c2... Doctrine Behavior Searchable:http://www.doctrine-project.org/projects/orm/1.2/docs/manual/searchin...http://www.symfony-project.org/plugins/sfSphinxPluginhttp://www.symfony-project.org/plugins/sfLucenePlugin/0_1_6outdated?http://www.symfony-project.org/plugins/tjSolrDoctrineBehaviorPluginhttp://www.tschitschereengreen.com/blog/index.php/2008/08/13/using-sp...http://www.symfony-project.org/plugins/sfSphinxPlugin/0_0_8 Thanks to all! comb On 2 Jun., 08:02, pghoratiu pghora...@gmail.com wrote: @pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote in the first post :-( Is there an alternative PHP-Search-Engine to Zend Lucene? Sphinx is a good alternative, I did not use it personally but my colleagues have and they are content with it. It very much depends on what exactly you try to accomplish, maybe the in-database search is enough for you if you have a small data set and have no special requirements for the free text search part. If this is the case you may consider also: - MySQL Free text search. - Doctrine Searchable behavio gabriel On 1 Jun., 21:53, pghoratiu pghora...@gmail.com wrote: Lucene is not slow, only the Zend PHP re-implementation of the Lucene file format + search. In my opinion it's close to unusable for real life scenarios (large data set, fast indexing ...). It probably would work ok for a small dataset such as 1. I recomend Solr as alternative which is Java Lucene service + XML API for access (and much more). As for the search part you need to define your exact document model, the basic entity used in search is the document that has several properties. There is usually one field to be used for full text search and several other fields that you use for structured search (e.g. date, tags). gabriel On Jun 1, 8:13 pm, comb sa...@gmx.net wrote: Hi! I have 5 different Models that I want to be searchable. I don't know, how to implement the search right now. First thing I think of is Zend Lucene, but I read several times, that the performance is bad (cannot use the java implementation). No my question is: where is the limit of Zend Lucene? I expect about 1000-10.000 records per Model and a maximum of 100 search-requests per minute. (probably 1-10 per minute average) Can Zend Lucene handle that amount? Is there an other (PHP-)library that I could do the searching with, if Lucene is to slow? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] __tostring
On Wed, 2 Jun 2010, safa boubekri wrote: in the table paimnentthe id_person is still number i want that it will be give me the nom prenom of person So in the Person class, you need to define __toString() that returns the string in the format you need. Example: http://www.symfony-project.org/jobeet/1_4/Doctrine/en/03#chapter_03_see_it_in_action_in_the_browser -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Lucene-Search
Do you use Lucene or Doctrines Searchable-behavior? On 2 Jun., 17:06, f1gm3nt f1gm...@gmail.com wrote: I'm using it for one of my web sites, I used the example that was included in the tutorial, then customized it to what I need. Need to go over it again see if I can optimize it any. I also made 2 symfony tasks, the first rebuilt the index and the second optimized it. As mentioned before, it can be a little slow but found that using optimize helped it a little. -f1g On Jun 2, 6:27 am, comb sa...@gmx.net wrote: Thanks! I'm going for the doctrine searchable behavior. Here is what I found useful to keep in mind for maybe later purpose: This thread here:http://groups.google.com/group/symfony-users/browse_thread/thread/8c2... Doctrine Behavior Searchable:http://www.doctrine-project.org/projects/orm/1.2/docs/manual/searchin... Thanks to all! comb On 2 Jun., 08:02, pghoratiu pghora...@gmail.com wrote: @pghoratiu: Yeah I know about Solr, but I cannot use it, like I wrote in the first post :-( Is there an alternative PHP-Search-Engine to Zend Lucene? Sphinx is a good alternative, I did not use it personally but my colleagues have and they are content with it. It very much depends on what exactly you try to accomplish, maybe the in-database search is enough for you if you have a small data set and have no special requirements for the free text search part. If this is the case you may consider also: - MySQL Free text search. - Doctrine Searchable behavio gabriel On 1 Jun., 21:53, pghoratiu pghora...@gmail.com wrote: Lucene is not slow, only the Zend PHP re-implementation of the Lucene file format + search. In my opinion it's close to unusable for real life scenarios (large data set, fast indexing ...). It probably would work ok for a small dataset such as 1. I recomend Solr as alternative which is Java Lucene service + XML API for access (and much more). As for the search part you need to define your exact document model, the basic entity used in search is the document that has several properties. There is usually one field to be used for full text search and several other fields that you use for structured search (e.g. date, tags). gabriel On Jun 1, 8:13 pm, comb sa...@gmx.net wrote: Hi! I have 5 different Models that I want to be searchable. I don't know, how to implement the search right now. First thing I think of is Zend Lucene, but I read several times, that the performance is bad (cannot use the java implementation). No my question is: where is the limit of Zend Lucene? I expect about 1000-10.000 records per Model and a maximum of 100 search-requests per minute. (probably 1-10 per minute average) Can Zend Lucene handle that amount? Is there an other (PHP-)library that I could do the searching with, if Lucene is to slow? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Read only/HTML form widget
On Wed, 2 Jun 2010, Norbert Haigermoser wrote: You can make any form field read/only this way: example: $this-widgetSchema['xatcode'] = new sfWidgetFormInput(array(), array('readonly'='readonly')); Correct me if Im wrong, but that doesn't work for input tags that DONT take a readonly attribute (e.g. SELECT). That's why the validator is needed. Am 6/2/10 10:21 AM, schrieb Tom Ptacnik: I think it would be wise to combine sfWidgetFormDiv with sfValidatorReadOnlyField from the snippet. On 1 čvn, 23:34, Tarjei Husetar...@scanmine.com wrote: Hi again, after looking further on the issue, I ended up with a widget that does this. See:http://trac.symfony-project.org/attachment/ticket/8726/sfWidgetFormDi... On 06/01/2010 03:41 PM, Tarjei Huse wrote: On 06/01/2010 02:54 PM, Thibault Jouannic wrote: Hi, http://snippets.symfony-project.org/snippet/387 Jolly good! Have you asked for it's inclusion into sfForm main? IMHO it deserves to be there :) Tarjei You're welcome :) Thibault. On Jun 1, 11:16 am, Tarjei Husetar...@scanmine.com wrote: Hi, This is something I quite often miss and therefore I would guess there is a solution for it. Quite often I want a field from an object shown in my form in a read only fashion. I.e the user sees the field but cannot edit it. Also, has someone created a simple widget for adding HTML elements into a form? Kind regards, Tarjei -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63 413 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] ckWebService for sf1.4
Hi list, I'm using ckWebService on symfony 1.4 (using svn co; not cli plugin:install). I have to change a method in the ckWebServiceController.class.php/ ckWebServiceController-getResultAdapter method Here is my own : /** * Gets the result adapter for the current action, if no instance exists, one is created. * * @return ckAbstractResultAdapter A result adapter for the current action */ public function getResultAdapter() { if(is_null($this-resultAdapter)) { $config = sfYaml::load(sfConfig::get('sf_app_module_dir') . DIRECTORY_SEPARATOR . $this-context-getModuleName() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'module.yml'); $result = $config[sfConfig::get('sf_environment')][$this- context-getActionName()]['result']; //$result = sfConfig::get(sprintf('mod_%s_%s_result', $this- context-getModuleName(), $this-context-getActionName()), array()); $class = isset($result['class']) ? $result['class'] : 'ckPropertyResultAdapter'; $param = isset($result['param']) ? $result['param'] : array(); $adapter = new $class($param); $this-resultAdapter = $adapter instanceof ckAbstractResultAdapter ? $adapter : new ckPropertyResultAdapter(); } return $this-resultAdapter; } And it is working. Hope this can be integrated in a new version for sf1.4 ? Hope I don't have made any mistake too... :-) Cheers, -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] ckWebService for sf1.4
Another problem I see is this plugin doesnt take care of plugin modules. Anyone made anything for this to work for plugin modules ? Thank you ! Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Jun 2, 2010 at 5:42 PM, Stéphane ERARD stephane.er...@gmail.comwrote: Hi list, I'm using ckWebService on symfony 1.4 (using svn co; not cli plugin:install). I have to change a method in the ckWebServiceController.class.php/ ckWebServiceController-getResultAdapter method Here is my own : /** * Gets the result adapter for the current action, if no instance exists, one is created. * * @return ckAbstractResultAdapter A result adapter for the current action */ public function getResultAdapter() { if(is_null($this-resultAdapter)) { $config = sfYaml::load(sfConfig::get('sf_app_module_dir') . DIRECTORY_SEPARATOR . $this-context-getModuleName() . DIRECTORY_SEPARATOR . 'config' . DIRECTORY_SEPARATOR . 'module.yml'); $result = $config[sfConfig::get('sf_environment')][$this- context-getActionName()]['result']; //$result = sfConfig::get(sprintf('mod_%s_%s_result', $this- context-getModuleName(), $this-context-getActionName()), array()); $class = isset($result['class']) ? $result['class'] : 'ckPropertyResultAdapter'; $param = isset($result['param']) ? $result['param'] : array(); $adapter = new $class($param); $this-resultAdapter = $adapter instanceof ckAbstractResultAdapter ? $adapter : new ckPropertyResultAdapter(); } return $this-resultAdapter; } And it is working. Hope this can be integrated in a new version for sf1.4 ? Hope I don't have made any mistake too... :-) Cheers, -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.comsymfony-users%2bunsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Class 'Swift_SmtpTransport' not found in task
Hi, I'm trying to send a mail from a task, yet I get this error: Fatal error: Class 'Swift_SmtpTransport' not found in C:\symfony\lib \task\RelatoriosTask.class.php on line 157 How can I include this class in the task? Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: combining functional and unit tests?
You can simply use propel tester. See http://www.symfony-project.org/jobeet/1_4/Propel/en/11#chapter_11_the_propel_tester cheers Massimiliano On 2 Giu, 00:18, Jeremy Thomerson jer...@thomersonfamily.com wrote: I have written a functional test that tests my site's registration flow. At the end of the test, I am calling my account peer and using lime to test that the account that was just registered is all in the database correctly. The test runs great if I run it by itself (test:functional frontend registrationActions), but it gives me an error if I run all functional tests together (test:functional frontend). It doesn't like the additional tests that I am doing with just lime. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Cache problem? I don't know
I'm having a problem with symfony on my server. Almost every action i do that goes to database i need make a F5 to the page to the modifications appear. For example, when i update a record from a table, when he goes to the show page he still have the old values, but if i make F5 the new values will appear. Same with logout for example. When i make logout i need press the logout butto and then make F5 to the logout take place. Any idea what's this? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Cache problem? I don't know
On Wed, 2 Jun 2010, wueb wrote: I'm having a problem with symfony on my server. Almost every action i do that goes to database i need make a F5 to the page to the modifications appear. What is F5 ? -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] jQuery and Ajax, DOM problem
Hello symfony users !! I have a problem with symfony and ajax (i'm using jQuery) When I click on a button, I send an ajax query that load an other module. The problem is I can't act on these new element with jQuery, for example in this new content (load with Ajax) I can't define a $ ('selector').click() event on this. It's simply don't work I add ?php use_javascript('js file')? in my module (the one who is loaded bu Ajax), but the js file is not include So I add the js code in the template of my module, but this code doeasn't appear in my firebug console (i'm using firefox) Can you help me ? (Oh, sorry for my technical English. I'm not used to it yet) Thanks for helping ! See ya !! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] recursive redirect :-/
Hi! :-) In a executeIndex(...) I want to redirect to the referrer, but only if the referrer is not the current action. How can I do that? //... $ref = $request-getReferer(); if ($ref != ...what do I need HERE?...) { $this-redirect(empty($ref)?'@homepage':$ref); } } //... problem is that the getReferer() method returns not a route but a string with the whole http-uri incl. server etc.. Thanks -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: jQuery and Ajax, DOM problem
First: If you do a ajax-request you won't get a layout added to the response - that's why the jquery-framework is not loaded by default. Second: What exactly are you doing to send some javascript as response? you could try dataType = script (jQuery: http://api.jquery.com/jQuery.ajax/ ) or use the eval() function within the callback of jQuery. On 2 Jun., 19:34, Vincent UNG ung.vinc...@gmail.com wrote: Hello symfony users !! I have a problem with symfony and ajax (i'm using jQuery) When I click on a button, I send an ajax query that load an other module. The problem is I can't act on these new element with jQuery, for example in this new content (load with Ajax) I can't define a $ ('selector').click() event on this. It's simply don't work I add ?php use_javascript('js file')? in my module (the one who is loaded bu Ajax), but the js file is not include So I add the js code in the template of my module, but this code doeasn't appear in my firebug console (i'm using firefox) Can you help me ? (Oh, sorry for my technical English. I'm not used to it yet) Thanks for helping ! See ya !! -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] batch import
On Wed, 2 Jun 2010, f1gm3nt wrote: I'm looking into doing batch imports with a symfony task. The issues I'm having are seg faults and running out of memory. Even after jacking the memory limit to 2gigs. Has anyone else ever done batch imports using a symfony task that can shed some light on how they did it? If this involves using the ORM layer to import data, I would import the data in small batches or skip the ORM layer entirely. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Class 'Swift_SmtpTransport' not found in task
On Wed, 2 Jun 2010, [ISO-8859-1] João Soares wrote: I'm trying to send a mail from a task, yet I get this error: Fatal error: Class 'Swift_SmtpTransport' not found in C:\symfony\lib \task\RelatoriosTask.class.php on line 157 How can I include this class in the task? Are you sure SwiftMailer classes are loaded? -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Cache problem? I don't know
He means he has to refresh the page, which means it's a caching issue. I'm not that familiar with caching, but it sounds like it's probably the client side caching that's the issue, because if it was the symfony caching system, refreshing on the client side wouldn't fix it. On Wednesday, June 2, 2010, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, wueb wrote: I'm having a problem with symfony on my server. Almost every action i do that goes to database i need make a F5 to the page to the modifications appear. What is F5 ? -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: recursive redirect :-/
yeah but how can I check if the current page is the same as the user comes from? On 2 Jun., 21:20, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: In a executeIndex(...) I want to redirect to the referrer, but only if the referrer is not the current action. How can I do that? //... $ref = $request-getReferer(); if ($ref != ...what do I need HERE?...) { $this-redirect(empty($ref)?'@homepage':$ref); } } //... problem is that the getReferer() method returns not a route but a string with the whole http-uri incl. server etc.. That's right - that's what a referrer string is.http://en.wikipedia.org/wiki/HTTP_referrer -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Cache problem? I don't know
On Wed, 2 Jun 2010, wueb wrote: For example, when i update a record from a table, when he goes to the show page he still have the old values, but if i make F5 the new values will appear. Same with logout for example. When i make logout i need press the logout butto and then make F5 to the logout take place. Any idea what's this? Might be a good idea to read the chapter in the symfony book about caching: http://www.symfony-project.org/gentle-introduction/1_4/en/12-Caching -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] __tostring
tank youbut in the choise i have liste of nomprenom but i want to have npmprenom in the table of paiment: select*from paiment it give me id_person not nom prenom -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: Cache problem? I don't know
Do you redirect after the form data is saved? After a form is processed and data is saved the best practice is to do redirect to avoid the re-POST of form data, make sure you have this. gabriel On Jun 2, 7:44 pm, wueb webmaster@gmail.com wrote: I'm having a problem with symfony on my server. Almost every action i do that goes to database i need make a F5 to the page to the modifications appear. For example, when i update a record from a table, when he goes to the show page he still have the old values, but if i make F5 the new values will appear. Same with logout for example. When i make logout i need press the logout butto and then make F5 to the logout take place. Any idea what's this? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: recursive redirect :-/
You need to evaluate your routes into a module/action tuple, see the last example on this page: http://pookey.co.uk/wordpress/archives/80-playing-with-symfony-routing-without-symfony You can probably load the routes separately from the YAML as well. gabriel On Jun 3, 12:24 am, comb sa...@gmx.net wrote: yeah but how can I check if the current page is the same as the user comes from? On 2 Jun., 21:20, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: In a executeIndex(...) I want to redirect to the referrer, but only if the referrer is not the current action. How can I do that? //... $ref = $request-getReferer(); if ($ref != ...what do I need HERE?...) { $this-redirect(empty($ref)?'@homepage':$ref); } } //... problem is that the getReferer() method returns not a route but a string with the whole http-uri incl. server etc.. That's right - that's what a referrer string is.http://en.wikipedia.org/wiki/HTTP_referrer -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: batch import
I have done something similar and the memory leak problem was difficult to solve. In my case it was due to circular references between objects and I always had to use unset() explicitely on individual objects after saving them into the database. Make sure the objects you are trying to save do not reference each other because they can not be free-d by the PHP garbage collector, also PHP 5.3 is somewhat smarter about memory recycling (compared to PHP 5.2). If you can not figure out where the problem is you should go with SQL data inserts. gabriel On Jun 2, 6:00 pm, f1gm3nt f1gm...@gmail.com wrote: I'm looking into doing batch imports with a symfony task. The issues I'm having are seg faults and running out of memory. Even after jacking the memory limit to 2gigs. Has anyone else ever done batch imports using a symfony task that can shed some light on how they did it? -f1g -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: recursive redirect :-/
Thank you pghoratiu, that furthers me, but I still wonder about that and cannot get it to work: routing.yml: search_query: url: /search/q param: { module: search, action: search } public function executeSearch(sfWebRequest $request) { var_dump($this-getRoute()-getPattern()); $ref = $request-getReferer(); var_dump($ref); $is_recursive = $this-getRoute()-matchesUrl($ref); var_dump($is_recursive ); die(); } Output: string '/search/q' (length=9) string 'http://localhost:8047/frontend_dev.php/search/q' (length=47) boolean false But I would expect the $is_recursive to be true?! How can I evaluate if the current route is the same as the referrer comes from? :-/ On 3 Jun., 00:28, pghoratiu pghora...@gmail.com wrote: You need to evaluate your routes into a module/action tuple, see the last example on this page:http://pookey.co.uk/wordpress/archives/80-playing-with-symfony-routin... You can probably load the routes separately from the YAML as well. gabriel On Jun 3, 12:24 am, comb sa...@gmx.net wrote: yeah but how can I check if the current page is the same as the user comes from? On 2 Jun., 21:20, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: In a executeIndex(...) I want to redirect to the referrer, but only if the referrer is not the current action. How can I do that? //... $ref = $request-getReferer(); if ($ref != ...what do I need HERE?...) { $this-redirect(empty($ref)?'@homepage':$ref); } } //... problem is that the getReferer() method returns not a route but a string with the whole http-uri incl. server etc.. That's right - that's what a referrer string is.http://en.wikipedia.org/wiki/HTTP_referrer -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: recursive redirect :-/
On Wed, 2 Jun 2010, comb wrote: Output: string '/search/q' (length=9) string 'http://localhost:8047/frontend_dev.php/search/q' (length=47) boolean false But I would expect the $is_recursive to be true?! How can I evaluate if the current route is the same as the referrer comes from? :-/ Maybe if you told us what you're trying to accomplish, we can suggest possible solutions. What you're trying to do sounds odd to me, there might be a better way though. On 3 Jun., 00:28, pghoratiu pghora...@gmail.com wrote: You need to evaluate your routes into a module/action tuple, see the last example on this page:http://pookey.co.uk/wordpress/archives/80-playing-with-symfony-routin... You can probably load the routes separately from the YAML as well. gabriel On Jun 3, 12:24 am, comb sa...@gmx.net wrote: yeah but how can I check if the current page is the same as the user comes from? On 2 Jun., 21:20, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: In a executeIndex(...) I want to redirect to the referrer, but only if the referrer is not the current action. How can I do that? //... $ref = $request-getReferer(); if ($ref != ...what do I need HERE?...) { $this-redirect(empty($ref)?'@homepage':$ref); } } //... problem is that the getReferer() method returns not a route but a string with the whole http-uri incl. server etc.. That's right - that's what a referrer string is.http://en.wikipedia.org/wiki/HTTP_referrer -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Re: recursive redirect :-/
I have a search-form which is included in almost every page. If a users searches to often (flooding) he gets a message (user-flash) to wait some time. In this case, I want to redirect the user back to the page he came from when he starts the search. (if there is no referrer, the user gets redirected to @homepage). All of that works fine! But now there is a search-results page, too, that comes from the search-action, where the redirection is done. If the user starts a new search from here and is too fast he gets the flash-message again, but the redirect to the last page is recursively since he came from the same action as he's redirected to. In this case I want to redirect the user to @homepage, too. But I don't know, how to find out, if the referrer matches the current route. Any help will be appreciated! :-) comb On 3 Jun., 03:13, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: Output: string '/search/q' (length=9) string 'http://localhost:8047/frontend_dev.php/search/q'(length=47) boolean false But I would expect the $is_recursive to be true?! How can I evaluate if the current route is the same as the referrer comes from? :-/ Maybe if you told us what you're trying to accomplish, we can suggest possible solutions. What you're trying to do sounds odd to me, there might be a better way though. On 3 Jun., 00:28, pghoratiu pghora...@gmail.com wrote: You need to evaluate your routes into a module/action tuple, see the last example on this page:http://pookey.co.uk/wordpress/archives/80-playing-with-symfony-routin... You can probably load the routes separately from the YAML as well. gabriel On Jun 3, 12:24 am, comb sa...@gmx.net wrote: yeah but how can I check if the current page is the same as the user comes from? On 2 Jun., 21:20, Eno symb...@gmail.com wrote: On Wed, 2 Jun 2010, comb wrote: In a executeIndex(...) I want to redirect to the referrer, but only if the referrer is not the current action. How can I do that? //... $ref = $request-getReferer(); if ($ref != ...what do I need HERE?...) { $this-redirect(empty($ref)?'@homepage':$ref); } } //... problem is that the getReferer() method returns not a route but a string with the whole http-uri incl. server etc.. That's right - that's what a referrer string is.http://en.wikipedia.org/wiki/HTTP_referrer -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
[symfony-users] Is there a way to refresh or reset csrf token if I unset some of the form's field?
I have asked in the symfony forum in http://forum.symfony-project.org/index.php/t/27855/ but get no answers. Is it the reason that the csrf token can't be reset after initialization? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: recursive redirect :-/
On Wed, 2 Jun 2010, comb wrote: But now there is a search-results page, too, that comes from the search-action, where the redirection is done. If the user starts a new search from here and is too fast he gets the flash-message again, but the redirect to the last page is recursively since he came from the same action as he's redirected to. In this case I want to redirect the user to @homepage, too. But I don't know, how to find out, if the referrer matches the current route. What Ive done in the past is generate the URL for the current page and store it in the session, so you can examine it in your action and take appropriate action. Referer is really not reliable so I donbt use it. -- -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en
Re: [symfony-users] Re: Symfony 1.4 project with embedded forms, user data in embedded forms not being saved
Can someone help me understand how the sfFormDoctrine handles the cleaned data of the subforms? Is there an analog to the taintedValues array for the cleaned values of the master and subforms, or are the cleaned values saved to disk as each form and subform is processed? I think it is the first case since all forms and subforms have to be validated before anything is saved. If it is the first case, I've not figured out what the array of cleaned values is called and where best for me to put debug statements. On Mon, May 31, 2010 at 4:50 PM, Michael Hodges mhodg...@gmail.com wrote: The tracing I did demonstrated that the save indeed invoked the collection form which in turn invoked each of the model forms. I haven't been been able to trace where the tainted values of the subforms don't get stored once cleaned so that they can be saved as part of a transaction. Can someone help me understand how the sfFormDoctrine handles the cleaned data of the subforms? Is there an analog to the taintedValues array for the cleaned values of the master and subforms, or are the cleaned values saved to disk as each form and subform is processed? I think it is the first case since all forms and subforms have to be validated before anything is saved. If it is the first case, I've not figured out what the array of cleaned values is called and where best for me to put debug statements. [I'm using debug statements because I've not yet figured out how to get xdebug (using NetBeans) to continue stepping me through source code once I've pressed the save button. I'll ask this in another thread if I can't eventually figure it out.] Thanks for any help with resolving the subform save problem. - Michael On Mon, May 31, 2010 at 3:00 PM, Daniel Lohse annismcken...@googlemail.com wrote: Last time I heard, embedded forms are saved when calling a form's save() method. This change was in the 1.3 1.4 release. Daniel Sent from my iPad On Jun 1, 2010, at 2:27 AM, ken marfillas...@gmail.com wrote: I would advise tracing through sfDoctrineForm::save() method. Embedded forms save is not actually fired on containing form save. So if you have many many relation or another embedded form inside an embedded form, they wont be persisted. On May 31, 1:28 pm, Michael Hodges mhodg...@gmail.com wrote: Hello Symfony fans, I'm hoping someone can point to the error in my ways. I am working with embedded forms and the problem is that the master record is saved to the database, but not the user date for the detail records. I have followed the 'more with symphony 1.4 en' example very carefully and have been very successful with all aspects of the project except getting the save to work. It's like a Toyota scenario where I have a great car, except for one fatal flaw. Hoping you can help. The schema involves a master record, Transaction Receipt (master form), and two detail records: PurchaseDetail (Purchases) and PaymentDetail (Payments), the embedded forms. For every receipt there must be at least one purchase and one payment detail. My validation rules for this work well thanks to the examples in the tutorial. The schema is as follows (I left a lot out except the essentials for readability): TransactionReceipt: connection: doctrine tableName: TransactionReceipt actAs: { Timestampable: } columns: receipt_id: { type: integer(4), primary: true, autoincrement: true } paid_amount: { type: 'decimal(5, 2)', notnull: true } paid_date: { type: timestamp(25), notnull: true } Purchases: { class: PurchaseDetail, local: receipt_id, foreign: receipt_id, type: many } Payments: { class: PaymentDetail, local: receipt_id, foreign: receipt_id, type: many } PurchaseDetail: connection: doctrine tableName: PurchaseDetail actAs: { Timestampable: } columns: purchase_id: { type: integer(4), primary: true, autoincrement: true} receipt_id: { type: integer(4) } fee_name: { type: string(45) } fee_description: { type: string(45) } fee_amount: { type: 'decimal(5, 2)' } quantity: { type: integer(4) } relations: TransactionReceipt: { owningSide: Yes, local: receipt_id, type: one, foreign: receipt_id, foreignType: many, foreignAlias: Purchases, onDelete: CASCADE, onUpdate: CASCADE } PaymentDetail: connection: doctrine tableName: PaymentDetail actAs: { Timestampable: } columns: payment_id: { type: integer(4), primary: true, autoincrement: true } receipt_id: { type: integer(4) } payment_type: { type: string(2) } payment_amount: { type: 'decimal(5, 2)' } relations: TransactionReceipt: { owningSide: Yes, local: receipt_id, type: one, foreign: receipt_id, foreignType: many, foreignAlias: Payments, onDelete: CASCADE, onUpdate: CASCADE } The YAML dump of the tainted values are taken
[symfony-users] Re: Custom directory structure
No. In public_html/pub there are only index.php, frontend_dev.php and image/css/javascript files. On Jun 1, 9:34 am, Tom Ptacnik to...@tomor.cz wrote: Is there (/home/xx/public_html/api/lib/vendor/symfony/lib/ plugins/sfDoctrinePlugin/lib/database/) the file sfDoctrineDatabase.class.php ? On 27 kvě, 16:45, Ragnis ragnis.ar...@gmail.com wrote: Nothing changed. Still theese errors: Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/ plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php) [function.require]: failed to open stream: No such file or directory in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/ sfAutoload.class.php on line 188 Fatal error: require() [function.require]: Failed opening required '/ home/xx/public_html/api/lib/vendor/symfony/lib/plugins/ sfDoctrinePlugin/lib/database/ sfDoctrineDatabase.class.php' (include_path='.:/usr/lib/php:/usr/local/ lib/php') in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/ sfAutoload.class.php on line 188 On May 27, 11:45 am, Tom Ptacnik to...@tomor.cz wrote: I think it can be done easily... it's just about moving the web folder somewhere else. And you have to configure you virtual in a right way of course. Virtual - classic - for you into public_html/api don't forget for alias for vendor/symfony/data/web/sf (The Alias statement is necessary for the images of the debug sidebar to be displayed) Then the project private_html/api = application public_html/api = web 1) All stuff from /web folder move to public_html/api 2) change the path to the web dir in ProjectConfiguration.class.php - something like this should work: $this-setWebDir($this-getRootDir().'/../../public_html/api); 3) change the path of the project in the front controllers: index.php, frontend_dev.php, backend.dev.php something like require_once(dirname(__FILE__).'/../../private_html/api/config/ ProjectConfiguration.class.php'); On 24 kvě, 20:06, Ragnis ragnis.ar...@gmail.com wrote: I want to use the following directory strucure: home ---xx --private_html -api apps cache config ... --public_html -api index.php frontend_dev.php ... But i don't know what files i need to edit to get it work. ProjectConfiguration.class.php ?php //require_once dirname(__FILE__).'/../lib/vendor/symfony/lib/autoload/ sfCoreAutoload.class.php'; require_once '../../private_html/api/lib/vendor/symfony/lib/autoload/ sfCoreAutoload.class.php'; sfCoreAutoload::register(); class ProjectConfiguration extends sfProjectConfiguration { public function setup() { $this-setWebDir($this-getRootDir().'../../public_html/api'); $this-enablePlugins('sfDoctrinePlugin'); } } frontend_dev.php ?php // this check prevents access to debug front controllers that are deployed by accident to production servers. // feel free to remove this, extend it or make something more sophisticated. if (!in_array(@$_SERVER['REMOTE_ADDR'], array('127.0.0.1', '::1')) false) { die('You are not allowed to access this file. Check '.basename(__FILE__).' for more information.'); } //require_once(dirname(__FILE__).'/config/ ProjectConfiguration.class.php'); require_once('../../private_html/api/config/ ProjectConfiguration.class.php'); $configuration = ProjectConfiguration::getApplicationConfiguration('frontend', 'dev', true); sfContext::createInstance($configuration)-dispatch(); I get an php error: Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/ plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php) [function.require]: failed to open stream: No such file or directory in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/ sfAutoload.class.php on line 188 Fatal error: require() [function.require]: Failed opening required '/ home/xx/public_html/api/lib/vendor/symfony/lib/plugins/ sfDoctrinePlugin/lib/database/ sfDoctrineDatabase.class.php' (include_path='.:/usr/lib/php:/usr/local/ lib/php') in /home/xx/private_html/api/lib/vendor/symfony/lib/autoload/ sfAutoload.class.php on line 188 -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group athttp://groups.google.com/group/symfony-users?hl=en -- If you want to