[symfony-users] [17794] breaks inclusion of js/css in components
Hello, The only way to succesfully add stylesheets and javascripts using the use_stylesheet() and use_javascript() helpers from component slots templates was to let the sfCommonFilter add all stylesheets and javascripts implicitely after rendering a page (thus not including include_stylesheets() and include_javascripts() calls in a layout template html head tag). Since the removal of sfCommonFilter in Sf 1.3 changeset [17794] this now is impossible to do. Any ideas to keep this powerful possibility, thus preventing me from including all stylesheets and javascripts of any component that could be possibly loaded on a page? I think this is a major loss of oop functionality. Greetings, Dennis --~--~-~--~~~---~--~~ 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: [17794] breaks inclusion of js/css in components
Hi Dennis, You can just include include_stylesheets() and include_javascripts() calls where you want the stuff to go to. if you want to have exactly the same behaviour as before, just put them before the end of the head tag. I dont understand why you think the common filter did something differen. can you elaborate? Fabian On Wed, Jun 3, 2009 at 2:28 PM, Dennis Verspuij dennis.versp...@gmail.comwrote: Hello, The only way to succesfully add stylesheets and javascripts using the use_stylesheet() and use_javascript() helpers from component slots templates was to let the sfCommonFilter add all stylesheets and javascripts implicitely after rendering a page (thus not including include_stylesheets() and include_javascripts() calls in a layout template html head tag). Since the removal of sfCommonFilter in Sf 1.3 changeset [17794] this now is impossible to do. Any ideas to keep this powerful possibility, thus preventing me from including all stylesheets and javascripts of any component that could be possibly loaded on a page? I think this is a major loss of oop functionality. Greetings, Dennis --~--~-~--~~~---~--~~ 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: [17794] breaks inclusion of js/css in components
Hi Fabien Thanks for your prompt reply. The problem is that the common filter inserted the link and script tags áfter generating the whole layout body, so when I use use_javascript and/or use_stylesheet in the template of a component I include by using include_component_slot() in the body of a layout these get included as well. With explicit calls to include_stylesheets() and include_javascripts() in the layout head tag the use_stylesheet() and use_javascript() calls in component slottemplates are too late! The problem exists in prior sf versions as well if you use explicit include_stylesheets() and include_javascripts() calls, that's why I let sfCommonFilter do it implicitely. Since [17794] explicit is now forced. Hope you understand it now, let me know. Dennis On 3 jun, 14:53, Fabian Lange fabian.la...@symfony-project.com wrote: Hi Dennis, You can just include include_stylesheets() and include_javascripts() calls where you want the stuff to go to. if you want to have exactly the same behaviour as before, just put them before the end of the head tag. I dont understand why you think the common filter did something differen. can you elaborate? Fabian On Wed, Jun 3, 2009 at 2:28 PM, Dennis Verspuij dennis.versp...@gmail.comwrote: Hello, The only way to succesfully add stylesheets and javascripts using the use_stylesheet() and use_javascript() helpers from component slots templates was to let the sfCommonFilter add all stylesheets and javascripts implicitely after rendering a page (thus not including include_stylesheets() and include_javascripts() calls in a layout template html head tag). Since the removal of sfCommonFilter in Sf 1.3 changeset [17794] this now is impossible to do. Any ideas to keep this powerful possibility, thus preventing me from including all stylesheets and javascripts of any component that could be possibly loaded on a page? I think this is a major loss of oop functionality. Greetings, Dennis- Tekst uit oorspronkelijk bericht niet weergeven - - Tekst uit oorspronkelijk bericht weergeven - --~--~-~--~~~---~--~~ 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: [17794] breaks inclusion of js/css in components
Hi Dennis, i am Fabian, not Fabien. Now I understand your issue. The point is that there will be always a layer where it is too late. basically all used javascripts and stylesheets must be known before the layout is rendered. Rendering the layout should not have effects on anything else. Your component slots try to add something for which it is too late already. Are the components slots that highly dynamic that you need to decide in the template of that component which css needs to be inserted? what you are calling for would be basically the option two add an extra layer. say a global template + a global layout decoration I am not sure if that is support now (i dont think so) or if we want to add it. Perhaps your case is too rare to add it. Sounds like you should do this in your own filter then (a copy of sfCommonFilter). I wonder how much this is a backwards incompatible change. Fabian On Wed, Jun 3, 2009 at 3:10 PM, Dennis Verspuij dennis.versp...@gmail.comwrote: Hi Fabien Thanks for your prompt reply. The problem is that the common filter inserted the link and script tags áfter generating the whole layout body, so when I use use_javascript and/or use_stylesheet in the template of a component I include by using include_component_slot() in the body of a layout these get included as well. With explicit calls to include_stylesheets() and include_javascripts() in the layout head tag the use_stylesheet() and use_javascript() calls in component slottemplates are too late! The problem exists in prior sf versions as well if you use explicit include_stylesheets() and include_javascripts() calls, that's why I let sfCommonFilter do it implicitely. Since [17794] explicit is now forced. Hope you understand it now, let me know. Dennis On 3 jun, 14:53, Fabian Lange fabian.la...@symfony-project.com wrote: Hi Dennis, You can just include include_stylesheets() and include_javascripts() calls where you want the stuff to go to. if you want to have exactly the same behaviour as before, just put them before the end of the head tag. I dont understand why you think the common filter did something differen. can you elaborate? Fabian On Wed, Jun 3, 2009 at 2:28 PM, Dennis Verspuij dennis.versp...@gmail.comwrote: Hello, The only way to succesfully add stylesheets and javascripts using the use_stylesheet() and use_javascript() helpers from component slots templates was to let the sfCommonFilter add all stylesheets and javascripts implicitely after rendering a page (thus not including include_stylesheets() and include_javascripts() calls in a layout template html head tag). Since the removal of sfCommonFilter in Sf 1.3 changeset [17794] this now is impossible to do. Any ideas to keep this powerful possibility, thus preventing me from including all stylesheets and javascripts of any component that could be possibly loaded on a page? I think this is a major loss of oop functionality. Greetings, Dennis- Tekst uit oorspronkelijk bericht niet weergeven - - Tekst uit oorspronkelijk bericht weergeven - --~--~-~--~~~---~--~~ 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: [17794] breaks inclusion of js/css in components
Fabian, Sorry for the name exchange, they look so alike I didn't notice. I think my case is not so rare, components often render a block somewhere in a page with their own looks, thus their own styles. Sometimes they also require their own javascripts. In my case the stylesheets/ javascripts included sometimes also depend on the context, e.g. what module the page around it is in. These are dependencies of the component one does not want to repeat for every layoutor module that uses the component! Luckily the sfCommonFilter inserted all javascripts and stylesheets implicitely after rendering the whole page, which imho was a great benefit especially from oop perspective! For now I copied a version of sfCommonFilter.class.php and re-added it to my filters.yml, so everything works ok, but I hope you and the other team members can give it a thought for the future?: are component slots that powerful when they cannot maintain all their dependencies like js/css themselves? Thanks again, kind regards, Dennis On 3 jun, 15:19, Fabian Lange fabian.la...@symfony-project.com wrote: Hi Dennis, i am Fabian, not Fabien. Now I understand your issue. The point is that there will be always a layer where it is too late. basically all used javascripts and stylesheets must be known before the layout is rendered. Rendering the layout should not have effects on anything else. Your component slots try to add something for which it is too late already. Are the components slots that highly dynamic that you need to decide in the template of that component which css needs to be inserted? what you are calling for would be basically the option two add an extra layer. say a global template + a global layout decoration I am not sure if that is support now (i dont think so) or if we want to add it. Perhaps your case is too rare to add it. Sounds like you should do this in your own filter then (a copy of sfCommonFilter). I wonder how much this is a backwards incompatible change. Fabian On Wed, Jun 3, 2009 at 3:10 PM, Dennis Verspuij dennis.versp...@gmail.comwrote: Hi Fabien Thanks for your prompt reply. The problem is that the common filter inserted the link and script tags áfter generating the whole layout body, so when I use use_javascript and/or use_stylesheet in the template of a component I include by using include_component_slot() in the body of a layout these get included as well. With explicit calls to include_stylesheets() and include_javascripts() in the layout head tag the use_stylesheet() and use_javascript() calls in component slottemplates are too late! The problem exists in prior sf versions as well if you use explicit include_stylesheets() and include_javascripts() calls, that's why I let sfCommonFilter do it implicitely. Since [17794] explicit is now forced. Hope you understand it now, let me know. Dennis On 3 jun, 14:53, Fabian Lange fabian.la...@symfony-project.com wrote: Hi Dennis, You can just include include_stylesheets() and include_javascripts() calls where you want the stuff to go to. if you want to have exactly the same behaviour as before, just put them before the end of the head tag. I dont understand why you think the common filter did something differen. can you elaborate? Fabian On Wed, Jun 3, 2009 at 2:28 PM, Dennis Verspuij dennis.versp...@gmail.comwrote: Hello, The only way to succesfully add stylesheets and javascripts using the use_stylesheet() and use_javascript() helpers from component slots templates was to let the sfCommonFilter add all stylesheets and javascripts implicitely after rendering a page (thus not including include_stylesheets() and include_javascripts() calls in a layout template html head tag). Since the removal of sfCommonFilter in Sf 1.3 changeset [17794] this now is impossible to do. Any ideas to keep this powerful possibility, thus preventing me from including all stylesheets and javascripts of any component that could be possibly loaded on a page? I think this is a major loss of oop functionality. Greetings, Dennis- Tekst uit oorspronkelijk bericht niet weergeven - - Tekst uit oorspronkelijk bericht weergeven -- Tekst uit oorspronkelijk bericht niet weergeven - - Tekst uit oorspronkelijk bericht weergeven - --~--~-~--~~~---~--~~ 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: Cpanel + symfony
1) You would need to fix the WEB folder name in your project2) Take a look in memory limits 3) check the freaking permission FYI: Just uploaded to a CPanel :p On Wed, Jun 3, 2009 at 10:28, juaninf juan...@gmail.com wrote: If I have a server with cpanel its possible install symfony, exist any requeriment to my php or apache? -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Cpanel + symfony
Well, I didn't had to care about it... On Wed, Jun 3, 2009 at 10:43, juaninf juan...@gmail.com wrote: all?, because when i worked with propel in the php settings, have that enabled extension=php_xsl.dll On 3 jun, 15:38, Sid Ferreira sid@gmail.com wrote: 1) You would need to fix the WEB folder name in your project2) Take a look in memory limits 3) check the freaking permission FYI: Just uploaded to a CPanel :p On Wed, Jun 3, 2009 at 10:28, juaninf juan...@gmail.com wrote: If I have a server with cpanel its possible install symfony, exist any requeriment to my php or apache? -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Cpanel + symfony
all?, because when i worked with propel in the php settings, have that enabled extension=php_xsl.dll On 3 jun, 15:38, Sid Ferreira sid@gmail.com wrote: 1) You would need to fix the WEB folder name in your project2) Take a look in memory limits 3) check the freaking permission FYI: Just uploaded to a CPanel :p On Wed, Jun 3, 2009 at 10:28, juaninf juan...@gmail.com wrote: If I have a server with cpanel its possible install symfony, exist any requeriment to my php or apache? -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Javascript Issue - Not getting all objects of the html tag created
Hi, I have a javascript function function dist2(value1,value2) { var des = description; for(m=value1;mvalue2;m++) { document.write(document.getElementById(des+m)+BR); } return false; } The id's of the text area are built as given below == for($i=0;$i5;$i++) { textarea rows=3 cols=35 id=?php echo 'description'.$i? name=?php echo 'description'.$i?/textarea } The dist2 javascript function is called as given below == input type=submit name=save onClick=if(dist2(?php echo $j;?,?php echo $i;?) == false) return false; else return true; value=Save/Add More I am getting the following reply [object HTML TextArea Element] null null null null --~--~-~--~~~---~--~~ 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] Doctrine build SQL error
Hi, I've finished a project under Symfony / Doctrine. Developers have worked on Mac OS X and Windows. When I try to install the project on Linux (Gentoo, PHP 5.2.9), the task doctrine:build-sql fails with this error : Fatal error: Class 'I18N' not found in /var/www/publish/_project/lib/model/doctrine/base/BaseubProduct.class.php on line 83 On line 83, I've : $i18n0 = new I18N(array('fields' = array(0 = 'label'), 'className' = '%CLASS%I18n')); On Mac OS X or Windows, on line 83 I've : $i18n0 = new Doctrine_Template_I18N(array('fields' = array(0 = 'label'), 'className' = '%CLASS%I18n')); I don't understand the problem. If I don't re-built model files (get from my SVN repository), and built manually the database from a dump, I get same error in the site when page uses an object with I18N behavior. Have you got some ideas ? Fabien --~--~-~--~~~---~--~~ 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] handing many-to-many relationship forms
Hi all, I have two tables which contain data and one table is a relationship between the two tables for example table1 id: name: longvarchar created_at: table2 id: name: longvarchar created_at: rel_table: table1_id: table2_id: my question is how do i embed rel_table when i populate table1Form class? In the admin generator i was able to do it, but how can i do such a thing manually, within the class? thanks, --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Weird upload problem
Sample schema: tableA: id: ~ title : varchar(16) tableB: id: ~ a_id: (FK) file: varchar(64); tableC: id: ~ a_id: (FK) file: varchar(64); In the forms, TableA embed all TableB and TableC that belongs to it. Sometimes the upload of B simply fails. why? obs: I hope it is enough information -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Which classes should I use for this validation logic?
Hi Alex, I haven't looked too deep in the subject, so this is not going to be a magical solution ;) But since there's some validation logic that involves more than 1 field, you'll have to play around with global validators - take a look at http://www.symfony-project.org/forms/1_2/en/02-Form-Validation#chapter_02_global_validators Hope that was a valid starting point! :) Best Regards, Campezzi On Jun 2, 12:43 pm, Alex Gilbert a...@valueneutral.com wrote: Field A is not required, but if Field A does contain a value then Field B is required. Can I use sfValidatorOr to do this or is there something more involved with sfValidatorSchema I need to be looking into? Thanks! --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] sfDoctrineRoute does not match
Hi, I have a form and I use the following route as url: --- routing.yml messages_view_conversation_update: url: /messages/reply/:id/update # class: sfDoctrineRoute options: { model: Conversation, type: object } param: { module: messages, action: reply, id: 1 } requirements: id: \d+ --- _form.php form action=?php echo url_for('messages_view_conversation_update', $conversation) ? method=post This works as expected. But once I uncomment sfDoctrineRoute, it does not match any more (form is displayed correctly with url but once I submit it, it matches /:action/:method/*). Can you tell me why this happens and how I can fix this? Regards Eric --~--~-~--~~~---~--~~ 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 build SQL error
I've the same problem on a Debian Dedicated server :-( 2009/6/3 FlyLM [ML] flylm...@gmail.com: Hi, I've finished a project under Symfony / Doctrine. Developers have worked on Mac OS X and Windows. When I try to install the project on Linux (Gentoo, PHP 5.2.9), the task doctrine:build-sql fails with this error : Fatal error: Class 'I18N' not found in /var/www/publish/_project/lib/model/doctrine/base/BaseubProduct.class.php on line 83 On line 83, I've : $i18n0 = new I18N(array('fields' = array(0 = 'label'), 'className' = '%CLASS%I18n')); On Mac OS X or Windows, on line 83 I've : $i18n0 = new Doctrine_Template_I18N(array('fields' = array(0 = 'label'), 'className' = '%CLASS%I18n')); I don't understand the problem. If I don't re-built model files (get from my SVN repository), and built manually the database from a dump, I get same error in the site when page uses an object with I18N behavior. Have you got some ideas ? Fabien --~--~-~--~~~---~--~~ 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: Weird upload problem
Hi Sidney, Unfortunately, there seems to be a bug with files uploaded inside embedded forms in symfony. You'll find a workaround in this URL: http://stereointeractive.com/blog/2008/12/23/symfony-12-upload-a-file-inside-an-embedded-form/ Also, it appears that when using this workaround you can't set a specific function to handle the file name (in other words, you're stuck with the name symfony generates by default). This bug is also probably documented in Trac, if you need more info. Good luck taming your embedded forms! :) PS: Are you brazilian too? Best Regards, Thiago Campezzi On Jun 3, 11:23 am, Sid Ferreira sid@gmail.com wrote: Sample schema: tableA: id: ~ title : varchar(16) tableB: id: ~ a_id: (FK) file: varchar(64); tableC: id: ~ a_id: (FK) file: varchar(64); In the forms, TableA embed all TableB and TableC that belongs to it. Sometimes the upload of B simply fails. why? obs: I hope it is enough information -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Weird upload problem
Yep, Brazillan too! Well, the weird point is that I use a LOT this embeded forms, and just _few_ some times it happens... On Wed, Jun 3, 2009 at 15:24, Campezzi campe...@gmail.com wrote: Hi Sidney, Unfortunately, there seems to be a bug with files uploaded inside embedded forms in symfony. You'll find a workaround in this URL: http://stereointeractive.com/blog/2008/12/23/symfony-12-upload-a-file-inside-an-embedded-form/ Also, it appears that when using this workaround you can't set a specific function to handle the file name (in other words, you're stuck with the name symfony generates by default). This bug is also probably documented in Trac, if you need more info. Good luck taming your embedded forms! :) PS: Are you brazilian too? Best Regards, Thiago Campezzi On Jun 3, 11:23 am, Sid Ferreira sid@gmail.com wrote: Sample schema: tableA: id: ~ title : varchar(16) tableB: id: ~ a_id: (FK) file: varchar(64); tableC: id: ~ a_id: (FK) file: varchar(64); In the forms, TableA embed all TableB and TableC that belongs to it. Sometimes the upload of B simply fails. why? obs: I hope it is enough information -- Sidney G B Ferreira Desenvolvedor Web -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] symfony propel-build-schema
Hola! Alguien me puede ayudar a descifrar el siguiente error:?? PHP Fatal error: Call to a member function getColumn() on a non- object in /usr/share/php5/PEAR/symfony/plugins/sfPropelPlugin/lib/ vendor/propel-generator/classes/propel/engine/database/reverse/pgsql/ PgsqlSchemaParser.php on line 400 El error se produce al tratar de ejecutar el comando: symfony propel- build-schema Tengo instalado symfony 1.2 y trabajo con una base de datos en PostgreSQL que tiene varios esquemas definidos dentro de una misma base de datos, además existen relaciones foráneas entre tablas de esquemas diferentes que es lo que asumo genera el error Nota: Aún no logro crear el schema.yml para mi proyecto. Saludos!. --~--~-~--~~~---~--~~ 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] Setting labels and help messages
I was wondering if anyone has devised a method to set all the labels and help messages using some sort of lookup technique from a configuration file? Ideally, it would be great to do this for validation error messages also. Steve --~--~-~--~~~---~--~~ 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] sfForm and birthday field
Hi all, Any standard solution for birthday field? sfWidgetFormDate seems to only support Unix timestamp which is limited to year from 1970? Which mean the oldest person's birthday that can be recorded is 39 years old. -- Blue Horn Ltd - System Development http://bluehorn.co.nz --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Adding a field to sfGuard Signin
As to your second question, I've integrated LDAP with sfGuard in the past. First off, I used adLDAP (http://adldap.sourceforge.net/ documentation.php) to connect to the LDAP server. Then I created my own class (myLDAP) with a static method for checking a username and password against the AD server I was hooking into. It returns true if the username/password combo exists and false if it doesn't. Finally, in app.yml, I configured sfGuard to use my custom static method to check the password of users: sf_guard_plugin: check_password_callable: [myLDAP, checkPassword] All user, group and permission management is still handled locally by the sfGuard backend modules. It simply calls out to LDAP to check the password. Hi Alex: First of all thx for your reply but this doesn't work for me. I will comment every step I follow to get it working but without success. 1) Download adLDAP.class.php and save in /apps/frontend/lib folder 2) Create my own class extending from sfGuardSecurity: class LDAP extends sfGuardSecurityUser { public static function checkUserOverLDAP($username, $password) { $options = array('account_suffix'='@uci.cu','base_dn'='DC=uci,DC=cu','domain_controllers'=array('10.0.0.3')); $ldap = new adLDAP($options); $authenticated = $ldap-authenticate($username, $password); if ($authenticated) { return true; } else { return false; } } } 3) Add this values to /apps/frontend/app.yml: sf_guard_plugin: check_password_callable: [LDAP, checkUserOverLDAP] 4) Clear the cache: symfony cc When I test if the username and password bind to LDAP server nothing happened always the method signin() is called but something is wrong inside because it doesn't work. I'm forgetting something? PS: I check the LDAP using the class outside Symfony and all it's fine because it works. Ing. Reynier Pérez Mira --~--~-~--~~~---~--~~ 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] Referer problem with sfGuardPlugin
Hi, I'm getting a problem. I have a registration confirmation screen which the user gets to by clicking on a link in an email. After getting a confirmation, the user can login. However, sfGuardPlugin sends the user to the referer if there is a referer. It seems that this is causing the code to go back to the registration confirmation page! What's strange is this didn't happen in the past. I updated the sfGuardPlugin today to 1.2 and this started happening. I tried to set the referer to false in my registration confirmation action, but it seems like the Signin module still gets it. Has anyone else encountered something like this? Thanks, Steve --~--~-~--~~~---~--~~ 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] Weird Schema Error
Hi guys!I can't share the content of my schema, but, it happens that it simply can't locate one of the tables. The structure is like: TableA TableB (FK to A) TableC (FK to B) TableD (FK to A) TableE (FK to C) I tried to rename, reorder fields, everything... what may it be? -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---
[symfony-users] Re: Referer problem with sfGuardPlugin
I've figured out what I need to change for this, but I don't understand why other people wouldn't have the same problem. I changed the following line in BasesfGuardAuthAction: $user-setReferer($this-getContext()-getActionStack()-getSize() 1 ? $request-getUri() : $request-getReferer()); to: $user-setReferer($this-getContext()-getActionStack()-getSize() 1 ? $request-getUri() : false); ie: if the action stack is not greater than 1, then I didn't get sent to the signin as a result of a forward. As such, I wouldn't want to necessarily use the referer. Otherwise, I run into situations like this: 1) If I signout of the application, and then click on the Signin link, the referer is the Signout URL, and after logging in, I am sent to the Signout URL 2) If I click on a registration confirmation, and then click on the Signin link, I am sent back to the registration confirmation after signing in Thanks, Steve On Jun 3, 11:46 pm, Steve the Canuck steve.san...@gmail.com wrote: Hi, I'm getting a problem. I have a registration confirmation screen which the user gets to by clicking on a link in an email. After getting a confirmation, the user can login. However, sfGuardPlugin sends the user to the referer if there is a referer. It seems that this is causing the code to go back to the registration confirmation page! What's strange is this didn't happen in the past. I updated the sfGuardPlugin today to 1.2 and this started happening. I tried to set the referer to false in my registration confirmation action, but it seems like the Signin module still gets it. Has anyone else encountered something like this? Thanks, Steve --~--~-~--~~~---~--~~ 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: Weird Schema Error
Hi, Is the order of the tables like in your example? Are the tables split up into different schema files? Frank Am 04.06.2009 um 05:56 schrieb Sid Ferreira: Hi guys! I can't share the content of my schema, but, it happens that it simply can't locate one of the tables. The structure is like: TableA TableB (FK to A) TableC (FK to B) TableD (FK to A) TableE (FK to C) I tried to rename, reorder fields, everything... what may it be? -- Sidney G B Ferreira Desenvolvedor Web --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~--~~~~--~~--~--~---