[symfony-users] sfDoctrineActAsTaggablePlugin Tag Widget Renderer
I'd like to use sfDoctrineActAsTaggablePlugin for my current project. In the documentation it says as follows: If you have a Symfony form with a 'tags' field, just replace your $form['tags']->render() call with this to get an attractive and user friendly widget for managing the list of tags: $form->getObject())) ?> First of all to make this component work, one needs to install sfJqueryReloadedPlugin. Someone might want to update this in the documentation. Second of all, this component doesn't work as described. I tried adding it to an existing form that I have, but it didn't work. It only works when it's on its own, that is not inside pre-existing form tags. So how can I make this component work within an existing form? Thanks in advance! -- 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] several different user profiles with sfDoctrineApplyPlugin
I'm building a Symfony based site where there are several kinds of user profiles, say buyers and sellers. They each have different fields in the schema, say shop name for seller and mood for buyer, and some shared fields like name, address, etc. I'd like to use sfDoctrineApplyPlugin for the signup process. However, as far as I can see I can only define one profile in the schema that the plugin will associate with the User class. What is the best way of making it work? Thanks in advance! -- 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] Propel data-load circular dependencies
Hi, I want to populate my db using the data-load task, but two of my tables reference each other, and this does not work well with the standard data fixture yml file. 1. Is there a standard way to populate such data using the yml files ? 2. If not - I want to extend sfPropelLoadDataTask, and fix the problematic dependencies after my yml data was inserted to the db. I got this idea here http://forum.symfony-project.org/index.php/m/17605/1181/0///#msg_17605, but I suspect this is a Doctrine solution. My question - how do I extend sfPropelLoadDataTask in a standard way ? (when I say standard I mean that running 'symfony propel:data-load' will execute MY class) 10x. --~--~-~--~~~---~--~~ 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] Using JQuery UI (or any other) tab component in a propel generated form
Hi, 1. I'm rather new to symfony forms. 2. I have a very large propel entity, which I want to display for editing using tabs. 3. I would love opinions / pointers. I know this is a bit long... I thought of implementing it in the form class as something like: $ws1 = new sfWidgetFormSchema(array(... fields in first group...)); $wd1 = new sfWidgetFormSchemaDecorator($ws1, '%content%'); $ws2 = new sfWidgetFormSchema(array(... fields in second group...)); $wd2 = new sfWidgetFormSchemaDecorator($ws2, '%content%'); $ws_tabs = new sfWidgetFormSchema(array('tab1' => $wd1, 'tab1' => $wd2)); $wd_tabs = new sfWidgetFormSchemaDecorator($ws_tabs, '%content%'); $this->widgetSchema['tabs'] = $wd_tabs; Does this look like a reasonable design ? Is there an existing widget for that ? Problems I can think of: 1. Field names - I will get obj[tabs][tab1][fieldname], where all I want is obj[fieldname] (server side shouldnt care for my tabs upon submission). I assume this is solvable using nameFormat, although I still havent figured it out 2. JQuery UI Tabs require this HTML: Nunc tincidunt Proin dolor Aenean lacinia bla bla bla bla bla bla which means my topmost decorator ($wd_tabs) will have to be smart enough to access each of the tabs ($wd1, $wd2), to get their names, so it would be able to print the ul / li structure for JQuery. I assume this will be done by extending sfWidgetFormSchemaDecorator Any thoughts ? 10x --~--~-~--~~~---~--~~ 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 can i use a symfony helper in a js file
Could you elaborate ? what helper ? where are you calling it from ? 10x On Apr 17, 9:13 pm, Ahmed wrote: > Thanks for all; > After many search i found that the best way is doing this with > helper . > @Alexandru-Emil Lupu : Why it's not recomended ? > > On 17 avr, 08:50, Alexandru-Emil Lupu wrote: > > > A thing that you might do is to have a "Javascript" module in wich you could > > render the needed Js functions. Ofcourse, this is not recomended... > > > On Thu, Apr 16, 2009 at 7:45 PM, Richtermeister wrote: > > > > Hey Ahmed, > > > > look into sfContext::getInstance()->getController()->genUrl > > > ($internal_uri, $absolute); to generate the url. That's what's being > > > called from within the url_for function, and it's perfectly fine to > > > use that within your app code. > > > > Hope this helps, > > > Daniel > > > > On Apr 16, 4:26 am, Ahmed wrote: > > > > Hi paolo ; > > > > I have already done this before but my goal is to separate the all my > > > > Javascript from templates > > > > and use helper in this file . > > > > Best regards Ahmed > > > > > > permuter > > > > > On 16 avr, 13:09, Paolo Mainardi wrote: > > > > > > Embed this code in a file template and will work :) > > > > > > On Thu, Apr 16, 2009 at 1:08 PM, Ahmed wrote: > > > > > > > Hi all :) , > > > > > > I want to use a php function to generate url ( for ajax call) in a > > > > > > js > > > > > > file like this : > > > > > > > > > > > > > $(document).ready(function(){ > > > > > > $.ajax({ > > > > > > url: "", > > > > > > success: function(html){ > > > > > > $("#step1_container").append(html); > > > > > > } > > > > > > }); > > > > > > }) ; > > > > > > > But in the generated code i have a logic error > > > > > > $(document).ready(function(){ > > > > > > 2 $.ajax({ > > > > > > 3 url: " > > > > > > 4Fatal error: Call to undefined function url_for() in > > > > > > \www\web\js\company\home.js.php on line 4 > > > > > > > How can i resolve this please ? > > > > > > > [Updated on: Thu, 16 April 2009 12:39] > > > > > > -- > > > > > Paolo Mainardi > > > > > > CTO Twinbit > > > > > Blog:http://www.paolomainardi.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] observe_form with no ajax call
Hi, I'm looking for something to observe changes in my forms, and a call a js function when something changes. It feels like LESS work than observe_form is actually doing (ajax), but I can't seem to figure a clean way of doing it. (All I want to do is manage a dirty bit for my form, so when the user is leaving the form, i'll be able to ask him if he's sure...) Is there something out there to help me? two options i see (which are the same really) 1. writing my own observe_form 2. doing it with direct Prototype code, in js. 10x --~--~-~--~~~---~--~~ 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] Customizing propel template generator for creating ajax enabled forms
Hi, I want to have ajax enabled forms for my model (use form_remote_tag instead of the regular form helpers). 1. This really seems like something someone would have already done. Is it ? 2. Assuming the answer to 1 is no - can someone point me in the right direction ? I thought of adding another template for a partial in sfPropelPlugin/ data/generator/sfPropelModule/default/template/templates, called _remote_form.php (alongside _form.php), which will use form_remote_tag and other ajax-enabled helpers. My problem is where to go from there - how do I tell propel's generator to use this new partial rather than the standard one. * A best solution will be a controllable one - where I can choose If I want ajax forms, regular forms or both Would appreciate any pointers, Ido. --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---