[symfony-users] specific apache directive by environment
Hello all, I would like to use strong apache openssl certificate authentication for an API accessible in a specific symfony application. I have 3 applications : frontend, backend and soap So I want to add apache directives for the soap app. Can I do it ? If yes, how ? Thanks a lot for the answers Regards Denis Fingonnet -- 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: Fatal error: Class 'Doctrine\MongoDB\Connection' not found
The test succeeds, MongoDB PHP driver is installed. On Thu, Jan 27, 2011 at 6:34 PM, Damon Jones damonljo...@gmail.com wrote: Make sure that you have installed the MongoDB PHP driver. If so, you should be able to test it with a plain PHP script: ?php $m = new Mongo(); http://us2.php.net/manual/en/book.mongo.php On Jan 27, 11:47 am, La Denise dfingon...@gmail.com wrote: Hello everyone, I'm trying to install Symfony2 with the DoctrineMongoDBBundle. But I get stuck when : $dm = $this-get('doctrine.odm.mongodb.document_manager'); I get : Fatal error: Class 'Doctrine\MongoDB\Connection' not found in /Users/ dft/Sites/gecollection/app/cache/dev/appDevDebugProjectContainer.php on line 699 Call Stack # TimeMemory FunctionLocation 1 0.0001 629560 {main}( ) ../gecollection_dev.php:0 2 0.0014 798704 Symfony\Component\HttpKernel\Kernel-handle( ) ../ gecollection_dev.php:14 3 0.0078 1557080 Symfony\Bundle\FrameworkBundle\HttpKernel-handle( ) ../Kernel.php:185 4 0.0078 1557800 Symfony\Component\HttpKernel\HttpKernel-handle( ) ../ HttpKernel.php:39 5 0.0078 1557800 Symfony\Component\HttpKernel\HttpKernel-handleRaw( ) ../classes.php:1020 6 0.0102 1626352 call_user_func_array ( ) ../classes.php:1051 7 0.0102 1626600 Application\Ladenise\CollectionBundle\Controller \CollectionController-indexAction( )../classes.php:0 8 0.0102 1626704 Symfony\Bundle\FrameworkBundle\Controller\Controller-get( ) ../CollectionController.php:11 9 0.0102 1626704 Symfony\Component\DependencyInjection\Container-get( ) ../classes.php:1364 10 0.0102 1627144 appDevDebugProjectContainer-getDoctrine_Odm_Mongodb_DocumentManagerService( ) ../Container.php: 222 11 0.0102 1627256 Symfony\Component\DependencyInjection\Container-get( ) ../appDevDebugProjectContainer.php:890 12 0.0103 1627720 appDevDebugProjectContainer-getDoctrine_Odm_Mongodb_DefaultDocumentManagerService( )../ Container.php:222 13 0.0103 1628400 Symfony\Component\DependencyInjection\Container-get( ) ../appDevDebugProjectContainer.php:760 14 0.0103 1628848 appDevDebugProjectContainer-getDoctrine_Odm_Mongodb_DefaultConnectionService( ) ../Container.php: 222 Could you please help me ? - Symfony\Bundle\DoctrineMongoDBBundle\DoctrineMongoDBBundle is registered in my Kernel. - Doctrine\\ODM\\MongoDB namespace is also registered in autoload.php Thanks, La Denise -- 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] Where to store class files (project level vs. app level, vs. module level)
I think that all tutorial examples assumes that you have only two applications: frontend and backend (or even single frontend). Obviously, if you have three or more applications - it will be better, if you put application classes separately. I'm not so sure about modules, but application level should rather clean. 2010/4/23 Richtermeister nex...@gmail.com: Hi all, This is more of an aesthetic question.. In most tutorials/examples/apps I see written in symfony, all class files are stored in the project/lib data. For the model layer I see that that's a good central spot, however, I often have forms or filters that are really only applicable to one application, and seeing that my project/lib dirs can get pretty crammed, I'm wondering if it's ok to move application specific classes into the project/apps/whatever/lib realm.. or even into the lib dir that is specific to a module.. Thanks for any validation either way. Daniel -- 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] Somebody, working with Filters?????
Filter - is the same thing as form. Just use something like: $filter = new YouClassFormFilter(); echo($filter); and if you have field 'created_at' at YouClass - you'll obtain such filter. 2010/4/22 Germana Oliveira germanaolivei...@gmail.com: I need filter a 'created_at' field.. thanks -- Germana Oliveira http://626f67.wordpress.com http://slcarabobo.wordpress.com Fool me once, shame on you. Fool me dozens of times, I'm an Apple customer. -- 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] noob url variable question
You can get id in your action: $id = $request-getParameter('id'); and use this id for any queries you like. 2010/4/23 bklshblues ashleyrevl...@gmail.com: I'm a symfony beginner and I'm looking for some help on what's probably a very obvious question. I want to use a variable in my url, where the variable is the id of an item, then display only that item on the page. I think the routing.yml url would be this: /item/:id How in the item/actions.class.php file would I reference that id? I want to use it in a Doctrine_Query to return that item from the database. -- 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] many-to-many with Doctrine
Hi, can anybody help with following task: I need to perform many-to-many relations in my model. Obviously, I need additional table for this. But I hope Doctrine have some smart functionality for creating additional table for this. How (without many-to-many) I have schema.yml with smth like this: Group: id: .. Item: group_id: ... relations: ItemParentGroup: onDelete: CASCADE class: Group local: group_id foreign: id foreignAlias: GroupItems How should I tell Doctrine about many-to-many? Denis -- 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 To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] sfOutputEscaper behaviour
Did you try to set escaping-strategy = off in the settings.yml of single module? Denis 2010/4/5 Apul Gupta apulmca...@gmail.com: Hi, Actually, I want to show some HTML text from the database to a template. I am using echo $sf_data-getRaw('sf_content'); to get un-escaped value from the database but still it shows escaped data to me. What should I do to get unescaped value? I don't want to SET escaping-strategy = off in settings.yml for the entire application. I will appreciate any help. --- Thanks Apul Gupta -- 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 To unsubscribe, reply using remove me as the subject. -- 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] a question about routing framework :P
Did you try something like this: some_route: url: /:module-:actions-:id 2010/4/1, Lee Joseph name.liz...@gmail.com: as I know routing framework in symfony which separates url information with slash '/' or dot '.' like some_route: url: /:module/:actions/:id I just want know is there anything I can do to make some Url like .com/auckland/module-action-id -- 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 To unsubscribe, reply using remove me as the subject. -- 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] sf_culture 'uk' = 'ua'
Hi, I have Symfony based site with URLs like www.site.com/uk/smth1/ smth2/... 'uk' - is the name of Ukraine localisation. The question is: how can I change 'uk' in URL (for Ukraine localisation) to 'ua'? -- 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 To unsubscribe, reply using remove me as the subject.
Re: [symfony-users] Re: Credentials problem
I'm not shure, but I think you need to check sfUser credentials by youself. -- 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 To unsubscribe from this group, send email to symfony-users+unsubscribegooglegroups.com or reply to this email with the words REMOVE ME as the subject.
[symfony-users] Custom Fields in sfGuardUser list filters
Hello all, I'm stuck here, I need help from the community. Here is my schema : MyUser: columns: sf_guard_user_id: type: integer(4) my_customer_id: type: integer email: type: string(255) relations: sfGuardUser: local: sf_guard_user_id foreign: id type: one foreignType: one MyCustomer: local: my_customer_id foreign: id type: one foreignType: many MyCustomer: columns: name: type: string(255) I installed sfDoctrineGuardPlugin and enabled the sfGuardUser module in the backend app. What I'm trying to do, without success, is to add a filter on the my_customer.name field in the sfGuardUser list filters. Here is my sfGuardUserFormFilter class : class sfGuardUserFormFilter extends PluginsfGuardUserFormFilter { public function configure() { $this-widgetSchema['sendit_customer'] = new sfWidgetFormDoctrineChoice(array('model' = 'SenditCustomer', 'add_empty' = true)); $this-validatorSchema['sendit_customer'] = new sfValidatorDoctrineChoice(array('required' = false, 'model' = 'SenditCustomer', 'column' = 'id')); } public function getFields() { $retour = array_merge(array('sendit_customer', 'SenditCustomer'), parent::getFields()); return $retour; } public function addSenditCustomerColumnQuery(Doctrine_Query $q, $field, $value) { if ($value) { $a = $q-getRootAlias(); $q-innerJoin($a . '.SenditUser su') -andWhere('su.sendit_customer_id = ?', $value); } return $q; } } It doesn't work and I can't find anything usefull on google. Any ideas ? I think I can get the same result by creating a my_user module with the admin generator. But I would like to know if I'm wrong anywhere or if it is not possible (I doubt of it). Thanks by advance, -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Doctrine utf8 encoding for plugins
up On Tue, Apr 21, 2009 at 11:38 AM, Denis Fingonnet dfingon...@gmail.com wrote: Hi all, I'd like to create all tables using an utf8_unicode_ci collate and an utf8 charset for plugins (sfDoctrineGuardPlugin for exemple). Is there a way to do this. I added : - encoding: utf8 in the databases.yml file - options: type: INNODB collate: utf8_unicode_ci charset: utf8 in the project schema.yml file. Any ideas ? -- Denis Fingonnet -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working
Hello Schorsch, Could you tell us : Where you put the tinyMCE dir ? How you set up the TinyMCE dir in the app.yml ? And what files you copy in the web/js dir ? Thx Denis On Fri, Feb 27, 2009 at 11:29 AM, Schorsch ge...@achtstaetter.net wrote: Hey, did you set up the TinyMCE Dir in the app.yml and copy the TinyMCE- Files in you web/js Folder? -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working
I'll keep an eye on it. Thank you On Fri, Feb 27, 2009 at 1:43 PM, Crafty_Shadow vankat...@gmail.com wrote: Ticket with patch created, the rest is up to fabien: http://trac.symfony-project.org/ticket/5986 -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Disable JS events until page fully loads
If I were you I'd use the jQuery Library (http://www.jquery.com). You'd have to learn the jQuery syntax and if you want to add events (onclicks, etc...), do something like this : $(document).ready(function(){ $('selector').onClick(function(){ // Whatever you want }); }); On Fri, Feb 27, 2009 at 2:17 PM, Sumedh sumedh.inam...@gmail.com wrote: Hi Friends, I've put all my JS includes at the bottom of pages...that improves visible performance of the page... But if user clicks somewhere on the page before it fully loads, it fires JS errors as the JS file is not found yet... How can I fix this generically? I want to disable all JS events like onclicks and onmouseovers until page is loaded...i will enable them in window.onload()... -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working
Does the tinyMCE widget used for a I18n field ? Because I managed to make the widget work without changing anything. I was doing this for a translated field called texte : $this-widgetSchema['texte'] = new sfWidgetFormTextareaTinyMCE(array( 'width' = 550, 'height' = 350, 'config' = 'theme_advanced_disable: anchor,image,cleanup,help', ), array( 'class' = 'tinyMCE' )); But if I do this : $this-widgetSchema['fr']['texte'] = new sfWidgetFormTextareaTinyMCE(array( 'width' = 550, 'height' = 350, 'config' = 'theme_advanced_disable: anchor,image,cleanup,help', ), array( 'class' = 'tinyMCE' )); It works very well. So it is not a bug but a lack of documentation about I18n and widget or I didn't get it... And a bad error message. On Fri, Feb 27, 2009 at 2:28 PM, Denis Fingonnet dfingon...@gmail.comwrote: I'll keep an eye on it. Thank you On Fri, Feb 27, 2009 at 1:43 PM, Crafty_Shadow vankat...@gmail.comwrote: Ticket with patch created, the rest is up to fabien: http://trac.symfony-project.org/ticket/5986 -- Denis Fingonnet -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: sfWidgetFormTextareaTinyMCE() not working
works like a charm ! On Fri, Feb 27, 2009 at 4:23 PM, Crafty_Shadow vankat...@gmail.com wrote: For i18n you should edit the representative form class; that is to say, in the main form, let's call it StaticPageForm.class.php you need: $this-embendI18n(array('en','fr')); //embends English and French //set labels so it's clearer $this-widgetSchema-setLabel('en', 'English'); $this-widgetSchema-setLabel('fr', 'French'); Then in StaticPageI18nForm.class.php $this-widgetSchema['content'] = new sfWidgetFormTextareaTinyMCE etc On Feb 27, 4:29 pm, Denis Fingonnet dfingon...@gmail.com wrote: Does the tinyMCE widget used for a I18n field ? Because I managed to make the widget work without changing anything. I was doing this for a translated field called texte : $this-widgetSchema['texte'] = new sfWidgetFormTextareaTinyMCE(array( 'width' = 550, 'height' = 350, 'config' = 'theme_advanced_disable: anchor,image,cleanup,help', ), array( 'class' = 'tinyMCE' )); But if I do this : $this-widgetSchema['fr']['texte'] = new sfWidgetFormTextareaTinyMCE(array( 'width' = 550, 'height' = 350, 'config' = 'theme_advanced_disable: anchor,image,cleanup,help', ), array( 'class' = 'tinyMCE' )); It works very well. So it is not a bug but a lack of documentation about I18n and widget or I didn't get it... And a bad error message. On Fri, Feb 27, 2009 at 2:28 PM, Denis Fingonnet dfingon...@gmail.com wrote: I'll keep an eye on it. Thank you On Fri, Feb 27, 2009 at 1:43 PM, Crafty_Shadow vankat...@gmail.com wrote: Ticket with patch created, the rest is up to fabien: http://trac.symfony-project.org/ticket/5986 -- Denis Fingonnet -- Denis Fingonnet -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] [sfDoctrineNestedSetManagerPlugin] Installation problem
Hi, I'm having a problem installing this plugin with symfony 1.2.5DEV : $ ./symfony plugin:install sfDoctrineNestedSetManagerPlugin plugininstalling plugin sfDoctrineNestedSetManagerPlugin sfPearFrontendPlugin downloading sfDoctrineNestedSetManagerPlugin-1.2.1.tgz ... sfPearFrontendPlugin Starting to download sfPearFrontendPlugin sfDoctrineNestedSetManagerPlugin-1.2.1.tgz (5,016 bytes) sfPearFrontendPlugin . sfPearFrontendPlugin . sfPearFrontendPlugin ...done: 5,016 bytes sfPearFrontendPlugin symfony/sfDoctrineNestedSetManagerPlugin requires package sfPearFrontendPlugin symfony/sfDoctrinePlugin (version = 1.0, version = 2.0, sfPearFrontendPlugin excluded versions: 2.0) Plugin sfDoctrineNestedSetManagerPlugin installation failed: No valid packages found As you could see the dependencies excludes the sfDoctrinePlugin 2 which is the installed version on sf 1.2.5DEV. Is it normal ? Because the plugin page says that it is compatible with the sf branch 1.2 and the sf 1.2.0 release already contains the sfDoctrinePlugin version 2. Any idea ? -- Denis Fingonnet --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---