[symfony-users] Propel admin generator in combination with internationalisation
I've ran into a problem with propels admin generator. I recently internationalized my database schema and would like to be able to manage the multilingual content in my backend. However, symfony spits out all sorts of errors. I moved the columns with multilingual content into the corresponding tables (naturally), but now symfony complains that the fields cannot be found. For example when I execute propel:data-load I get: ``Call to undefined method BasePage::getTitle'' The documentation says that symfony generates proxy methods to access the internationalized content with a default culture, but apparently this is not so. Any helpful tips or further reading would be very much appreciated Thomas -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] 404 config not working
While using the dev front controller, you will always get that screen (you don't really care about a fancy 404 screen while developing, do you?). If you want to customize your 404 template, use the prod controller. On Fri, Dec 18, 2009 at 04:27, diogobaeder wrote: > Hi, > > I'm trying to customize the 404 action, but the sfError404Exception is > taking me to the default non-catched exceptions screen. Can you help > me? Here are my configs: > > > > # settings.yml > ... > all: > .actions: > error_404_module: main > error_404_action: error404 > ... > > # modules/main/actions/actions.class.php > ... > public function executeError404(sfWebRequest $request) > { > > } > ... > > # modules/main/templates/error404Success.php > (blank, for now) > > # the error message > 404 | Not Found | sfError404Exception > Empty module and/or action after parsing the URL "/i-do-not- > exist" (/). > stack trace > > > > > Thanks! > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] sfWidgetFormI18nChoiceCountry has continents
the new sfWidgetFormI18nChoiceCountry (symfony 1.4) has continents among countries. So, in the list there's something like "Europe", "Asia", but also "Eastern Europe" and so on. My doubts: 1) is there a way (maybe an option?) to exclude such entries? I would like a clean list, with only countries. 2) if first is not possible, a good fallback could be optgroups of areas with countries inside I browsed the source of sfWidgetFormI18nChoiceCountry class, but no luck. Should I file a bug? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] ysfYUIPlugin and isXmlHttpRequest()
Ahoi, >From my research it seems that YUI doesnt send the required X_REQUESTED_WITH >header information. But I think that previous version of the ysfYUIPlugin >added support for sending the header. However it seems like this is missing in >the 1.3 branch? Or what js file should I load in order to get this set >properly? Or is this now a user land job to set the header via Y.io? regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Problem with "ysfYUIPlugin" installation... Help me please!!! :(
Seems that I have resolved my problem with this plug-in this morning, after that I did "symfony cc" in command line... :) Thanks to all... On 17 Dic, 13:05, "Marco V." wrote: > OK, thank you Stèphane... > Someone can help me please? > > On 17 Dic, 13:01, Stéphane wrote: > > > Well, I forgot it is already recursive on lib directory, so your .php files > > should be loaded automagically, > > Don't know what's wrong here > > > Before Printing, Think about Your Environmental Responsibility! > > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > On Thu, Dec 17, 2009 at 12:49 PM, Marco V. wrote: > > > My autoload.yml file contains: > > > autoload: > > > # project > > > project: > > > name: project > > > path: %SF_LIB_DIR% > > > recursive: on > > > exclude: [model, symfony] > > > > project_model: > > > name: project model > > > path: %SF_LIB_DIR%/model > > > recursive: on > > > > # application > > > application: > > > name: application > > > path: %SF_APP_LIB_DIR% > > > recursive: on > > > > modules: > > > name: module > > > path: %SF_APP_DIR%/modules/*/lib > > > prefix: 1 > > > recursive: on > > > > What should I edit? > > > > On 17 Dic, 12:37, Stéphane wrote: > > > > AFAIK, You might look at the autoload.yml feature of symfony for loading > > > > files (using recursive option might help too) > > > > > Before Printing, Think about Your Environmental Responsibility! > > > > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > > > On Thu, Dec 17, 2009 at 12:35 PM, Marco V. > > > wrote: > > > > > Now I have solved last problem, but when I try to call a function of > > > > > ysfYUI class in my code, I haven't access on it, because it isn't > > > > > visible... :( > > > > > The class ysfYUI.class.php is in /lib/vendor/symfony/lib/yui > > > > > directory. > > > > > What is the problem? > > > > > > P.S. Thank you all so far. :) > > > > > > On 17 Dic, 11:28, "Marco V." wrote: > > > > > > Sorry... :) > > > > > > Now I have enabled sfDoctrineGuardPlugin, too, but there is another > > > > > > error :( > > > > > > It's: > > > > > > > Warning: call_user_func() expects parameter 1 to be a valid > > > > > > callback, > > > > > > class 'sfGuardRouting' not found in C:\sfyproject\lib\vendor\symfony > > > > > > \lib\event\sfEventDispatcher.class.php on line 77 > > > > > > > Warning: call_user_func() expects parameter 1 to be a valid > > > > > > callback, > > > > > > class 'sfGuardRouting' not found in C:\sfyproject\lib\vendor\symfony > > > > > > \lib\event\sfEventDispatcher.class.php on line 77 > > > > > > > Fatal error: Class 'sfGuardSecurityUser' not found in C:\sfyproject > > > > > > \apps\frontend\lib\myUser.class.php on line 4 > > > > > > > On 17 Dic, 11:23, Stéphane wrote: > > > > > > > > So you make use of sfDoctrineGuardPlugin, so add it to the > > > > > enablePlugins > > > > > > > array in your porjectConfiguration. > > > > > > > In fact, foreach dir in plugins, if you want to enable plugin, add > > > its > > > > > name > > > > > > > in the array :) > > > > > > > > Before Printing, Think about Your Environmental Responsibility! > > > > > > > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > > > > > > > On Thu, Dec 17, 2009 at 11:13 AM, Marco V. < > > > vantaggiat...@gmail.com> > > > > > wrote: > > > > > > > > Ok, I changed my line of code with yours, but now i receive this > > > > > > > > error: Fatal error: Class 'sfGuardSecurityUser' not found in C: > > > > > > > > \sfyproject\apps\frontend\lib\myUser.class.php on line 4 > > > > > > > > myUser.class.php contains this code: > > > > > > > > > > > > > > > > class myUser extends sfGuardSecurityUser > > > > > > > > { > > > > > > > > } > > > > > > > > > ?> > > > > > > > > > On 17 Dic, 11:05, Stéphane wrote: > > > > > > > > > try not using enableAllPlugins, prefer the white-list approach > > > than > > > > > the > > > > > > > > > black-list one. > > > > > > > > > so try with enablePlugins(array('sfDoctrinePlugin', > > > > > 'sfYUIPlugin')); > > > > > > > > > Then symfony cc > > > > > > > > > > Before Printing, Think about Your Environmental > > > > > > > > > Responsibility! > > > > > > > > > Avant d'Imprimer, Pensez à Votre Responsabilitée > > > Environnementale! > > > > > > > > > > On Thu, Dec 17, 2009 at 10:53 AM, Marco V. < > > > > > vantaggiat...@gmail.com> > > > > > > > > wrote: > > > > > > > > > > It's alredy enabled because in my > > > ProjectConfiguration.class.php > > > > > there > > > > > > > > > > is this line of code: $this->enableAllPluginsExcept(array > > > > > > > > > > ('sfPropelPlugin', 'sfCompat10Plugin')); > > > > > > > > > > but don't working... :( > > > > > > > > > > I checked also that the file ysfYUIView is present in > > > > > C:\sfyproject\lib > > > > > > > > > > \vendor\symfony\lib\view and it's true. > > > > > > >
Re: [symfony-users] Re: var_dump Doctrine_Record
If you do want to retrieve integer value, overload the getValue() method to cast the value. Don't think you should mind it. Alexandre 2009/12/16 Salim > I also tried to inspect these values in a controller action, and I got > strings anyway > > On 16 déc, 16:15, Alexandre Salomé wrote: > > Can be because you retrieve values through an escaper ? are you getting > > these values in template ? > > > > 2009/12/16 Salim > > > > > > > > > > > > > I also have floats and integers on my schema, but i get string values > > > for those columns. > > > I can't figure out why. > > > > > On 11 déc, 23:53, Alexandre Salomé wrote: > > > > Well, if I understand the problem : > > > > > >- You always get string values for columns > > > >- You define a schema with only string values > > > > > > Are you... sure of your problem ? > > > > > > 2009/12/11 Salim > > > > > > > No answers ? > > > > > > > On 10 déc, 10:02, Salim wrote: > > > > > > Here is an sample of the schema : > > > > > > > > Place: > > > > > > actAs: > > > > > > I18n: > > > > > > fields: > > > > > >- name > > > > > >- number > > > > > >- address > > > > > >- postal_box > > > > > >- cedex > > > > > >- city > > > > > >- zip_code > > > > > >- country > > > > > >- tel > > > > > >- fax > > > > > >- email > > > > > >- website > > > > > >- presentation > > > > > >- image > > > > > > connection: via_france > > > > > > columns: > > > > > > lon:float > > > > > > lat:float > > > > > > name: string(255) > > > > > > number: string(255) > > > > > > address:string(255) > > > > > > postal_box: string(255) > > > > > > cedex: string(255) > > > > > > city: string(255) > > > > > > zip_code: string(255) > > > > > > insee: string(10) > > > > > > country_id: string(2) > > > > > > country:string(255) > > > > > > tel:string(255) > > > > > > fax:string(255) > > > > > > email: string(255) > > > > > > website:string(255) > > > > > > presentation: string(4000) > > > > > > image: string(255) > > > > > > stars: integer > > > > > > > > On 9 déc, 17:45, Serkan Koyuncu > wrote: > > > > > > > > > Could you please post your schema? > > > > > > > > > Regards, > > > > > > > S. > > > > > > > > > 2009/12/9 Salim : > > > > > > > > > > PS : I am using Symfony 1.2 with Doctrine 1.1 > > > > > > > > > > On 9 déc, 17:03, Salim wrote: > > > > > > > >> Hi all, > > > > > > > > > >> After inspecting several doctrine records on my project, I > > > realized > > > > > > > >> that every field of these records was casted into strings > > > whatever > > > > > the > > > > > > > >> type declared for the column in the schema.yml file. > > > > > > > > > >> Is it a known issue, or am I missing something ? > > > > > > > > > >> Thank's in advance for your help > > > > > > > > > > -- > > > > > > > > > > You received this message because you are subscribed to the > > > Google > > > > > Groups "symfony users" group. > > > > > > > > To post to this group, send email to > > > symfony-us...@googlegroups.com. > > > > > > > > To unsubscribe from this group, send email to > > > > > symfony-users+unsubscr...@googlegroups.com > > > > > > > > > . > > > > > > > > For more options, visit this group athttp:// > > > > > groups.google.com/group/symfony-users?hl=en. > > > > > > > -- > > > > > > > You received this message because you are subscribed to the Google > > > Groups > > > > > "symfony users" group. > > > > > To post to this group, send email to > symfony-us...@googlegroups.com. > > > > > To unsubscribe from this group, send email to > > > > > symfony-users+unsubscr...@googlegroups.com > > > > > > > > > . > > > > > For more options, visit this group at > > > > >http://groups.google.com/group/symfony-users?hl=en. > > > > > > -- > > > > Alexandre Saloméhttp://alexandre-salome.fr > > > > > -- > > > > > You received this message because you are subscribed to the Google > Groups > > > "symfony users" group. > > > To post to this group, send email to symfony-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > symfony-users+unsubscr...@googlegroups.com > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/symfony-users?hl=en. > > > > -- > > Alexandre Saloméhttp://alexandre-salome.fr > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us
Re: [symfony-users] Re: Help with display of doctrine float numbers
Try this : value: { type: float(8), scale: 4, notnull: true } 2009/12/18 PhiKapJames > I have for this table: >value: > type: float() > fixed: false > unsigned: false > primary: false > notnull: true > autoincrement: false > > In the data I have .4123, but when called / displayed in symfony, I > only see .41. With sql call (or phpmyadmin), I see .4123. I'm not > doing any formatting myself currently when displaying in symfony. > > On Dec 14, 5:04 pm, Alexandre Salomé > wrote: > > Hi, > > > > Which value do you have in your database ? (PHPMyAdmin or SQL client) > > > > What is the type of column defined in your schema ? > > > > 2009/12/13 PhiKapJames > > > > > > > > > I'm running into the issue where when I'm trying to use the default > > > getValue() method that was automatically generated from a model, that > > > it's not giving the correct place value. I have for examply .4123 in > > > my database, but it is only displaying .41. When i look at the query > > > log, it's not doing anything special to format the number. How can I > > > get the correct full value of .4123? > > > > > -- > > > > > You received this message because you are subscribed to the Google > Groups > > > "symfony users" group. > > > To post to this group, send email to symfony-us...@googlegroups.com. > > > To unsubscribe from this group, send email to > > > symfony-users+unsubscr...@googlegroups.com > > > > > > . > > > For more options, visit this group at > > >http://groups.google.com/group/symfony-users?hl=en. > > > > -- > > Alexandre Saloméhttp://alexandre-salome.fr > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > -- Alexandre Salomé http://alexandre-salome.fr -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] ysfYUIPlugin and isXmlHttpRequest()
On 18.12.2009, at 12:14, Lukas Kahwe Smith wrote: > Ahoi, > > From my research it seems that YUI doesnt send the required X_REQUESTED_WITH > header information. But I think that previous version of the ysfYUIPlugin > added support for sending the header. However it seems like this is missing > in the 1.3 branch? Or what js file should I load in order to get this set > properly? Or is this now a user land job to set the header via Y.io? nevermind .. seems like Y.io does send the header by default. I was just being stupid and didnt check that a co worker is using GDownloadUrl() for that ajax call and not YUI. regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: 404 config not working
Thanks for the help, guys! I'll create a route for the 404 action, for testing purposes, then... BTW, great site, Lupu! It's in my bookmarks, now, thanks for the tip! :-) Diogo On 18 dez, 08:52, Gábor Fási wrote: > While using the dev front controller, you will always get that screen > (you don't really care about a fancy 404 screen while developing, do > you?). > If you want to customize your 404 template, use the prod controller. > > On Fri, Dec 18, 2009 at 04:27, diogobaeder wrote: > > Hi, > > > I'm trying to customize the 404 action, but the sfError404Exception is > > taking me to the default non-catched exceptions screen. Can you help > > me? Here are my configs: > > > # settings.yml > > ... > > all: > > .actions: > > error_404_module: main > > error_404_action: error404 > > ... > > > # modules/main/actions/actions.class.php > > ... > > public function executeError404(sfWebRequest $request) > > { > > > } > > ... > > > # modules/main/templates/error404Success.php > > (blank, for now) > > > # the error message > > 404 | Not Found | sfError404Exception > > Empty module and/or action after parsing the URL "/i-do-not- > > exist" (/). > > stack trace > > > Thanks! > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com. > > For more options, visit this group > > athttp://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Discount Code for Symfony Users - Perq - A Symfony Powered Website
On Dec 17, 6:30 pm, CA wrote: > The application, which is for small business people to track employee > paid time off, may or may not be right for you, but I wanted to give > back some way I could. > > Use SYMFONY50 and receive 50% off for six months. I've got a question - what's the URL? :) -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Discount Code for Symfony Users - Perq - A Symfony Powered Website
Hi. I think it's http://www.perqworks.com/ 2009/12/18 Matt Robinson > On Dec 17, 6:30 pm, CA wrote: > > The application, which is for small business people to track employee > > paid time off, may or may not be right for you, but I wanted to give > > back some way I could. > > > > Use SYMFONY50 and receive 50% off for six months. > > I've got a question - what's the URL? :) > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > -- With the best regards, Andrei. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Re: Discount Code for Symfony Users - Perq - A Symfony Powered Website
perqworks.com Really funny, but Google is your friend... :D Daniel On Dec 18, 2009, at 1:56 PM, Matt Robinson wrote: > On Dec 17, 6:30 pm, CA wrote: >> The application, which is for small business people to track employee >> paid time off, may or may not be right for you, but I wanted to give >> back some way I could. >> >> Use SYMFONY50 and receive 50% off for six months. > > I've got a question - what's the URL? :) > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Propel admin generator in combination with internationalisation
try posting the schema meanwhile -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Propel admin generator in combination with internationalisation
Basing on my experience, I can tell you that symfony *does* generates proxy methods. Maybe you missed to adapt your fixtures after schema modifies? On 18 Dic, 10:51, thomees wrote: > I've ran into a problem with propels admin generator. I recently > internationalized my database schema and would like to be able to > manage the multilingual content in my backend. > > However, symfony spits out all sorts of errors. I moved the columns > with multilingual content into the corresponding tables (naturally), > but now symfony complains that the fields cannot be found. > > For example when I execute propel:data-load I get: ``Call to undefined > method BasePage::getTitle'' > > The documentation says that symfony generates proxy methods to access > the internationalized content with a default culture, but apparently > this is not so. > > Any helpful tips or further reading would be very much appreciated > > Thomas -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Fatal error: Class 'sfInflector' not found
Tskler Serkan Bey gerçekten çok yardımcı oldunuz... :) -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Render single choice of sfWidgetFormSelectCheckbox
Hello people, I'm looking for some ideas in front of a quite simple problem. Here is a simple form: class MyForm extends sfForm { public function setup() { $choices = array('option_1', 'option_2'); $this->setWidgets(array( 'options' => new sfWidgetFormChoice(array('expanded' => true, 'multiple' => true, 'choices' => $choices)), )); $this->setValidators(array( 'EventId' => new sfValidatorChoice('choices' => $choices, 'multiple' => true), )); $this->widgetSchema->setNameFormat('options[%s]'); } } Now, in some view, I'd like to use this form. The goal is to show one of the choice somewhere, display some business logic stuff and later show the second choice, followed by the submit button. If I use the checkbox_tag helper, I will loose the interest of the centralized configuration of the form. I can't use a formatter as there is too much stuff in the middle of the form. Does anyone have an idea of how to show only one of the choices of the widget anywhere in a view like I tried to explained ? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: question about sf jobeet tutorial Day 5 sfError404Exception
you must put the job's id after the module: http://jobeet.localhost/frontend_dev.php/job/1/... On 16 déc, 21:19, mars wrote: > i followed the day 5 tutorial, aftre change route to sfDoctrineRoute, > i got the correct url format as specified in the > tutorial:http://jobeet.localhost/frontend_dev.php/job/sensio-labs/paris-france... > however the page wont' display, got sfError404Exception: Action job/ > sensiolabs does not exist. > > any idea how to fix it? Thanks. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Doctrine Form - multiple/recursive embedRelation -> Apache
Hello, I have a Doctrine Form (Teammatch) which consists of several Matches which themselves have several Games. So I have a recursive embedded Relation like this: class TeammatchForm extends BaseTeammatchForm { public function configure() { $this->embedRelation('Matches'); } } class MatchForm extends BaseMatchForm { public function configure() { $this->embedRelation('Games'); } } But it doesn't work. I get a Win32 Exception in apache.exe and the connection is lost. Without $this->embedRelation('Games'); it works fine. So it must have to do with the recursion. Does anybody know a workaround? Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] How to set variables In the Global template?
Hi all, I have an application where I need to customize the look(Color Scheme which matches the client site) for each client using the single codebase...So what I am doing is I am storing the values in the yml file and from that I am fetching the values. I am doing something like this in the global template: $file = strtolower($sf_request->getParameter('symbol')) . ".yml"; $filepath = sfConfig::get('app_file_path') . 'web/uploads/settings/' . $file; if (file_exists($filepath)) { $test = sfYaml::load( sfConfig::get('app_file_path') . 'web/uploads/ settings/' .$file); } else { $test = sfYaml::load(sfConfig::get('app_file_path') . 'web/uploads/ settings/default.yml'); } foreach ($test as $a) { $topbar = "#" . $a['color']['topbar']; $footerbar = "#" . $a['color']['footerbar']; $inactivetab = "#" . $a['color']['inactivetab']; $activetab = "#" . $a['color']['activetab']; $activetabtext = "#" . $a['color']['activetabtext']; $menuline = "#" . $a['color']['menuline']; $textcolor = "#" . $a['color']['textcolor']; $postedByBox = "#" . $a['color']['postedByBox']; $questionBox = "#" . $a['color']['questionBox']; $contextBox = "#" . $a['color']['contextBox']; $answerBox = "#" . $a['color']['answerBox']; } Whatever variables I am setting here, I need to access them in the module's templates also... The problem here is I can't access the variables set here in the modules template( in for ex: modulename/indexSuccess.php) Pls help me how to do that? P.S: I am storing Colors in the variables. Thanks in Advance! Ajit -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Doctrine 2 joins on same table
Symfony 1.4 PHP 5.2.9 MySQL 5.0.81 I'm having exactly the same issue but the posted solution isn't working for me. schema.yml: Schedule: columns: kickoff: type: timestamp notnull: true venue_id: type: integer(4) home_id: type: integer(4) away_id: type: integer(4) relations: venue: class: venue local: venue_id foreign: id foreignAlias: schedules home: class: team local: home_id foreign: id foreignAlias: schedules away: class: team local: away_id foreign: id foreignAlias: schedules fixtures.yml: Schedule: Match_1: kickoff: '2010-06-11 16:00:00' Venue: Venue_2 Home: Team_1 Away: Team_2 symfony doctrine:build --all --and-load Error message: Unknown record property / related component "home" on "Schedule" Does anyone know where I'm going wrong? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Setting default error messages for forms (1.4.1)
Hi, it s probably because you call setMessage after the validator has been created, the text message is set when the validator is created and wont be changed afterward ( it will happens will all propel/doctrine form since the validator are created in the setup call ). I just put the default message in ProjectConfiguration.class.php sfValidatorBase::setDefaultMessage('required', 'This field is required.'); sfValidatorBase::setDefaultMessage('invalid', 'The information you entered is invalid..'); bye On Dec 17, 2:39 pm, Campezzi wrote: > Hello folks, > > I've been trying to set default error messages on my forms so that I > don't have to "repeat myself" setting them field by field - for > example, setting global "required" and "invalid" messages. Looking at > the API, this seems simple enough by calling the setMessages() method > on my form's validatorSchema, so I've tried this inside my form's > configure() method: > > $this->validatorSchema->setMessages(array( > 'required' => 'This field is required.', > 'invalid' => 'The information you entered is invalid.' > )); > > However, to my surprise, it does nothing! No errors/warnings/ > exceptions, yet nothing actually happens and the same old "Required." > and "Invalid." messages pop up on my form. > > Is there something incredibly dumb I'm missing here or is this just a > bug in sf 1.4? > > Thanks for your time! > > Best Regards, > > Thiago Campezzi > campe...@gmail.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] problema with build-schema in command line
Hi, i have this problem: When I write in the command line "symfony doctrine: build-schema" I get this error "No models generated from your databases. Why? Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Setting default error messages for forms (1.4.1)
Dear Campezzia, I am using Symfony 1.2.9, but the following codes may also work in 1.4.1. class frontendConfiguration extends sfApplicationConfiguration { public function configure() { sfValidatorBase::setRequiredMessage("This field is required."); sfValidatorBase::setInvalidMessage("This field is Invalid."); } } - Original Message - From: "Campezzi" To: "symfony users" Sent: Thursday, December 17, 2009 9:39 PM Subject: [symfony-users] Setting default error messages for forms (1.4.1) > Hello folks, > > I've been trying to set default error messages on my forms so that I > don't have to "repeat myself" setting them field by field - for > example, setting global "required" and "invalid" messages. Looking at > the API, this seems simple enough by calling the setMessages() method > on my form's validatorSchema, so I've tried this inside my form's > configure() method: > > >$this->validatorSchema->setMessages(array( > 'required' => 'This field is required.', > 'invalid' => 'The information you entered is invalid.' >)); > > However, to my surprise, it does nothing! No errors/warnings/ > exceptions, yet nothing actually happens and the same old "Required." > and "Invalid." messages pop up on my form. > > Is there something incredibly dumb I'm missing here or is this just a > bug in sf 1.4? > > Thanks for your time! > > Best Regards, > > Thiago Campezzi > campe...@gmail.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-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > > __ NOD32 4694 (20091216) Information __ > > This message was checked by NOD32 antivirus system. > http://www.eset.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] plugin:install not working for 1.3/1.4?
I seem to be having trouble installing plugins through the plugin:install command in sf1.3/4. In a new project I run symfony plugin:install sfDoctrineGuardPlugin I get: Unable to get plugin licence information for plugin "sfDoctrineGuardPlugin": Unknown package: "sfDoctrineGuardPlugin" in channel "" Debug: File http://plugins.symfony-project.org:80/REST/p/sfdoctrineguardplugin/info.xml not valid (received: HTTP/1.0 404 No version available with the installed symfony version) (use --force-license to force installation) when I add --force-license I get: Unable to get download information for plugin "sfDoctrineGuardPlugin | 4.0.1 | stable": Package "sfDoctrineGuardPlugin" does not have REST info xml available I get the problem with other plugins, sfFormExtraPlugin for example. When I try to install my own plugin, sfAdminDashPlugin (using: symfony plugin:install -s beta --install_deps sfAdminDashPlugin), which requires sfJqueryReloadedPlugin as a dependency, sfJqueryReloadedPlugin installs fine but I get this error for sfAdminDashPlugin: Plugin "sfAdminDashPlugin" installation failed: Download failed Anyone have any ideas? Something I am missing? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: problema with build-schema in command line
I solved the problem. Thanks to all. On 18 Dic, 09:08, Maicol wrote: > Hi, i have this problem: > When I write in the command line "symfony doctrine: build-schema" I > get this error "No models generated from your databases. > Why? > > Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] plugin:install not working for 1.3/1.4?
There are plugins not yet ready for sf1.3/1.4. You must install them manually and check their code by using symfony project:validate (to see used deprecated stuff). Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, Dec 18, 2009 at 3:22 PM, Kevin wrote: > I seem to be having trouble installing plugins through the > plugin:install command in sf1.3/4. > > In a new project I run symfony plugin:install sfDoctrineGuardPlugin I > get: > > Unable to get plugin licence information for plugin > "sfDoctrineGuardPlugin": Unknown package: "sfDoctrineGuardPlugin" in > channel "" > > Debug: File > http://plugins.symfony-project.org:80/REST/p/sfdoctrineguardplugin/info.xml > not valid > (received: HTTP/1.0 404 No version available with the installed > symfony version) (use --force-license to force installation) > > when I add --force-license I get: > > Unable to get download information for plugin "sfDoctrineGuardPlugin | > 4.0.1 | stable": Package "sfDoctrineGuardPlugin" does not have REST > info xml available > > I get the problem with other plugins, sfFormExtraPlugin for example. > > When I try to install my own plugin, sfAdminDashPlugin (using: symfony > plugin:install -s beta --install_deps sfAdminDashPlugin), which > requires sfJqueryReloadedPlugin as a dependency, > sfJqueryReloadedPlugin installs fine but I get this error for > sfAdminDashPlugin: > > Plugin "sfAdminDashPlugin" installation failed: Download failed > > Anyone have any ideas? Something I am missing? > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: plugin:install not working for 1.3/1.4?
I should have clarified, all these plugins I am trying to install are compatible with 1.3. On Dec 18, 9:24 am, Stéphane wrote: > There are plugins not yet ready for sf1.3/1.4. > > You must install them manually and check their code by using symfony > project:validate (to see used deprecated stuff). > > Before Printing, Think about Your Environmental Responsibility! > Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! > > On Fri, Dec 18, 2009 at 3:22 PM, Kevin wrote: > > I seem to be having trouble installing plugins through the > > plugin:install command in sf1.3/4. > > > In a new project I run symfony plugin:install sfDoctrineGuardPlugin I > > get: > > > Unable to get plugin licence information for plugin > > "sfDoctrineGuardPlugin": Unknown package: "sfDoctrineGuardPlugin" in > > channel "" > > > Debug: File > >http://plugins.symfony-project.org:80/REST/p/sfdoctrineguardplugin/in... > > not valid > > (received: HTTP/1.0 404 No version available with the installed > > symfony version) (use --force-license to force installation) > > > when I add --force-license I get: > > > Unable to get download information for plugin "sfDoctrineGuardPlugin | > > 4.0.1 | stable": Package "sfDoctrineGuardPlugin" does not have REST > > info xml available > > > I get the problem with other plugins, sfFormExtraPlugin for example. > > > When I try to install my own plugin, sfAdminDashPlugin (using: symfony > > plugin:install -s beta --install_deps sfAdminDashPlugin), which > > requires sfJqueryReloadedPlugin as a dependency, > > sfJqueryReloadedPlugin installs fine but I get this error for > > sfAdminDashPlugin: > > > Plugin "sfAdminDashPlugin" installation failed: Download failed > > > Anyone have any ideas? Something I am missing? > > > -- > > > You received this message because you are subscribed to the Google Groups > > "symfony users" group. > > To post to this group, send email to symfony-us...@googlegroups.com. > > To unsubscribe from this group, send email to > > symfony-users+unsubscr...@googlegroups.com > > . > > For more options, visit this group at > >http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Reasons NOT To Use CakePHP
I wouldn't say Cake is _bad_. I've used it on a fairly large project and wasn't horrified by it - but maintaining a Cake app is a LOT more work than creating and maintaining a Symfony app. Work === time === money. This is chiefly because Symfony has a lot of additional helpers, and auto generates much of what you need from config files. With Cake there's a lot of code to write... and a lot of SQL queries. Views are scattered in a sub-template kinda sucky way that takes getting used to. More code means more "stuff" where errors/typos can occur, so maintaining it also takes longer (and therefore costs more). I'm not sure if you can use Doctrine or Propel with Cake - never tried. Certainly, if you could this would reduce the workload somewhat. Cake *IS* based on PHP4 though - which you may or may not have an issue with (I do). Probably not the Cake-bashing email you wanted ;) I'd be tempted to tell the client that if they understand Cake, it's not SUCH a quantum leap to learn Symfony. Many principals are the same. Due to the fact that Cake is based on PHP4, which is now deprecated, I take the stance that means that Cake is also deprecated. Still, if they insist on Cake - let them eat Cake ::ducks:: On 17 Dec 2009, at 14:24, Stephen Melrose wrote: > Hey guys, > > We've specced a project here for Symfony, and the client has come back > saying they want to use CakePHP instead because someone there end has > used it, therefore can maintain it. > > I've heard CakePHP isn't one of the better frameworks, but I haven't > used it so I don't know why. > > What we need is some justified reasons. Anyone got any they can throw > my way? Preferably from a maintenance perspective? > > Cheers, > > Stephen > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Doctrine 2 joins on same table
It might be a case-sensitivity issue - you have lowercase ("venue", "home" and "away") in your relations section of your schema, but the first letter capitalised ("Venue", "Home", "Away") in your fixtures. On Dec 17, 12:05 pm, mattvick wrote: > Symfony 1.4 > PHP 5.2.9 > MySQL 5.0.81 > > I'm having exactly the same issue but the posted solution isn't > working for me. > > schema.yml: > > Schedule: > columns: > kickoff: > type: timestamp > notnull: true > venue_id: > type: integer(4) > home_id: > type: integer(4) > away_id: > type: integer(4) > relations: > venue: > class: venue > local: venue_id > foreign: id > foreignAlias: schedules > home: > class: team > local: home_id > foreign: id > foreignAlias: schedules > away: > class: team > local: away_id > foreign: id > foreignAlias: schedules > > fixtures.yml: > > Schedule: > Match_1: > kickoff: '2010-06-11 16:00:00' > Venue: Venue_2 > Home: Team_1 > Away: Team_2 > > symfony doctrine:build --all --and-load Error message: > > Unknown record property / related component "home" on "Schedule" > > Does anyone know where I'm going wrong? -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] How to set variables In the Global template?
sfConfig::set($name, $value) maybe ? On Thu, Dec 17, 2009 at 4:44 PM, ajit wrote: > Hi all, > > I have an application where I need to customize the look(Color Scheme > which matches the client site) for each client using the single > codebase...So what I am doing is I am storing the values in the yml > file and from that I am fetching the values. > > I am doing something like this in the global template: > > $file = strtolower($sf_request->getParameter('symbol')) . ".yml"; > $filepath = sfConfig::get('app_file_path') . 'web/uploads/settings/' . > $file; > if (file_exists($filepath)) > { > $test = sfYaml::load( sfConfig::get('app_file_path') . 'web/uploads/ > settings/' .$file); > } > else > { > $test = sfYaml::load(sfConfig::get('app_file_path') . 'web/uploads/ > settings/default.yml'); > } > foreach ($test as $a) > { > $topbar = "#" . $a['color']['topbar']; > $footerbar = "#" . $a['color']['footerbar']; > $inactivetab = "#" . $a['color']['inactivetab']; > > $activetab = "#" . $a['color']['activetab']; > $activetabtext = "#" . $a['color']['activetabtext']; > $menuline = "#" . $a['color']['menuline']; > $textcolor = "#" . $a['color']['textcolor']; > > $postedByBox = "#" . $a['color']['postedByBox']; > $questionBox = "#" . $a['color']['questionBox']; > $contextBox = "#" . $a['color']['contextBox']; > $answerBox = "#" . $a['color']['answerBox']; > } > > > Whatever variables I am setting here, I need to access them in the > module's templates also... > > The problem here is I can't access the variables set here in the > modules template( in for ex: modulename/indexSuccess.php) > > Pls help me how to do that? > > > P.S: I am storing Colors in the variables. > > Thanks in Advance! > > Ajit > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > -- Have a nice day! Alecs As programmers create bigger & better idiot proof programs, so the universe creates bigger & better idiots! I am on web: http://www.alecslupu.ro/ I am on twitter: http://twitter.com/alecslupu I am on linkedIn: http://www.linkedin.com/in/alecslupu Tel: (+4)0748.543.798 -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] Reasons NOT To Use CakePHP
I'd second what Pablo said. You can always get a list of reasons for or against a framework. In the end, if the client can support Cake but not symfony, then i'd just use cakephp. CakePHP is pretty easy to develop in. If you can develop in symfony, cakephp will be... cake :) -d On Dec 17, 2009, at 10:52 AM, Pablo Godel wrote: > Hi Stephen, > > As much as you may not like it, I think you should do what the customer > asked. If they have someone already that can (or think that can) maintain > CakePHP, for the customer this is very important. > > There are many reasons why not use CakePHP, but there can also be many why > not use symfony, and having someone that does not know it is one of them. > > Good luck! > Pablo > > On Thu, Dec 17, 2009 at 9:24 AM, Stephen Melrose wrote: > Hey guys, > > We've specced a project here for Symfony, and the client has come back > saying they want to use CakePHP instead because someone there end has > used it, therefore can maintain it. > > I've heard CakePHP isn't one of the better frameworks, but I haven't > used it so I don't know why. > > What we need is some justified reasons. Anyone got any they can throw > my way? Preferably from a maintenance perspective? > > Cheers, > > Stephen > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > > > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: problema with build-schema in command line
What was the problem? It might help others. On Dec 18, 2:23 pm, Maicol wrote: > I solved the problem. > Thanks to all. > > On 18 Dic, 09:08, Maicol wrote: > > > Hi, i have this problem: > > When I write in the command line "symfony doctrine: build-schema" I > > get this error "No models generated from your databases. > > Why? > > > Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: problema with build-schema in command line
What was the problem? It might help others. On Dec 18, 2:23 pm, Maicol wrote: > I solved the problem. > Thanks to all. > > On 18 Dic, 09:08, Maicol wrote: > > > Hi, i have this problem: > > When I write in the command line "symfony doctrine: build-schema" I > > get this error "No models generated from your databases. > > Why? > > > Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
RE: [symfony-users] enum in config/schema.yml
Hi With Doctrine you could do that to have a enum with a foreign key Resource: tableName: resource columns: id: { type: integer(4), primary: true, autoincrement: true } resource_type_id: { type: enum, values: [value1, value2, value3], notnull: true } name: { type: string(255) } relations: ResourceType: { local: resource_type_id, foreign: id, type: one } ResourceType: tableName: resource_type columns: id: { type: enum, primary: true, values: [value1, value2, value3] } name: { type: string(255), notnull: true } relations: Resources: { class: Resource, local: id, foreign: resource_type_id, type: many } Olivier > -Message d'origine- > De : symfony-users@googlegroups.com [mailto:symfony- > us...@googlegroups.com] De la part de vegoi...@alumni.uv.es > Envoyé : mardi 15 décembre 2009 11:20 > À : symfony-users@googlegroups.com > Objet : [symfony-users] enum in config/schema.yml > > Could I do a enumeration in the file schema.yml? > In other words, I need the attribute authors like a enumeration of ids. > This ids would be foreign keys of the entity person or something like > that. How can I do it? > > -- > > You received this message because you are subscribed to the Google Groups > "symfony users" group. > To post to this group, send email to symfony-us...@googlegroups.com. > To unsubscribe from this group, send email to symfony- > users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] sfDynamics and sf1.4
Hello everyone, Excuse the briefness of this note.. For those of us using Sf 1.4.1 and the sfDrynamicsPlugin it appears that changes were made in svn Dec 7th so we should pull the svn source as install form that correct? I know that the 0.93?? still has errors on sf1.4.1 although the plugin is enabled and module is enabled.. Thanks -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] I can't see the images of the "default" module.
Hi, i have instaled XAMPP (for linux) and then i have installed symfony in /opt/lampp/htdocs/my_proyect/lib/vendor. Now i cant see the images of the "default" module. I have change the permissions, even from the /opt folder, but the problem persists... Any idea? Bye Javi -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
[symfony-users] Re: Setting default error messages for forms (1.4.1)
Thanks! This worked like magic :) Best Regards, Thiago Campezzi campe...@gmail.com On 17 dez, 20:21, xplo wrote: > Hi, > it s probably because you call setMessage after the validator has been > created, the text message is set when the validator is created and > wont be changed afterward ( it will happens will all propel/doctrine > form since the validator are created in the setup call ). > I just put the default message in ProjectConfiguration.class.php > sfValidatorBase::setDefaultMessage('required', 'This field is > required.'); > sfValidatorBase::setDefaultMessage('invalid', 'The information you > entered is invalid..'); > bye > > On Dec 17, 2:39 pm, Campezzi wrote: > > > > > Hello folks, > > > I've been trying to set default error messages on my forms so that I > > don't have to "repeat myself" setting them field by field - for > > example, setting global "required" and "invalid" messages. Looking at > > the API, this seems simple enough by calling the setMessages() method > > on my form's validatorSchema, so I've tried this inside my form's > > configure() method: > > > $this->validatorSchema->setMessages(array( > > 'required' => 'This field is required.', > > 'invalid' => 'The information you entered is invalid.' > > )); > > > However, to my surprise, it does nothing! No errors/warnings/ > > exceptions, yet nothing actually happens and the same old "Required." > > and "Invalid." messages pop up on my form. > > > Is there something incredibly dumb I'm missing here or is this just a > > bug in sf 1.4? > > > Thanks for your time! > > > Best Regards, > > > Thiago Campezzi > > campe...@gmail.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-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.
Re: [symfony-users] ysfYUIPlugin and isXmlHttpRequest()
On 18.12.2009, at 13:20, Lukas Kahwe Smith wrote: > > On 18.12.2009, at 12:14, Lukas Kahwe Smith wrote: > >> Ahoi, >> >> From my research it seems that YUI doesnt send the required X_REQUESTED_WITH >> header information. But I think that previous version of the ysfYUIPlugin >> added support for sending the header. However it seems like this is missing >> in the 1.3 branch? Or what js file should I load in order to get this set >> properly? Or is this now a user land job to set the header via Y.io? > > > nevermind .. seems like Y.io does send the header by default. I was just > being stupid and didnt check that a co worker is using GDownloadUrl() for > that ajax call and not YUI. that being said, it seems like GDownloadUrl() does not send the required X_REQUESTED_WITH header by default or does it support sending custom headers. it would be good if isXmlHttpRequest() would also check a GET/POST parameter "isXmlHttpRequest" to be able to handle such JS frameworks that are unable to send the proper header. regards, Lukas Kahwe Smith m...@pooteeweet.org -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en.