Re: [symfony-users] [Symfony2] User authentication

2011-02-18 Thread Stefan Paschke
If you extended your controller class from Symfony\Bundle\FrameworkBundle\Controller\Controller, you should be able to access the container as an instance variable, like $this-container. regards Stefan Paschke On Feb 18, 2011, at 8:29 AM, Sébastien Roch wrote: Hi, I don't have much

Re: [symfony-users] 2 Classes for each Database Table, what to put in each one?

2010-12-14 Thread Stefan Paschke
yes you can: http://www.symfony-project.org/gentle-introduction/1_4/en/08-Inside-the-Model-Layer-Doctrine#chapter_08_sub_object_and_table_classes On Dec 14, 2010, at 1:02 PM, Andre Lopes wrote: There are 2 classes for each Table, for example: JobeetJob.class.php and JobeetJobTable.class.php

Re: [symfony-users] Excluding from Filter and Form builder

2010-07-15 Thread Stefan Paschke
if you are using Doctrine, you can turn filters off like this: SomeModel: options: symfony: form: false filter: false it's described on day 10 of the Jobeet tutorial regards Le Jul 15, 2010 à 4:16 PM, Gábor Fási a écrit : I'm using this: _propel_behaviors:

Re: [symfony-users] Re: Ajax Forms

2010-02-09 Thread Stefan Paschke
Hi Samuel this is pretty straightforward. Install the sfJqueryReloaded plugin for the jQuery functionality. This gives you the jq_link_to_remote() and jq_form_remote_tag() functions (that actually replace previous prototype functions from symfony 1.0). Both functions are wrappers to

Re: [symfony-users] Re: Ajax Forms

2010-02-09 Thread Stefan Paschke
Ajax form validation works like regular form validation. The action inits and binds the form class, if it does not validate, you just return the bound form complete with error messages. It's described in the jobeet tutorial. Stefan On Feb 10, 2010, at 7:24 AM, Samuel Morhaim wrote: Stefan,

Re: [symfony-users] [1.3/1.]How to best implement an address using the Symfony 1.3/1.4 Form Framework?

2010-02-03 Thread Stefan Paschke
Hi Stephen If you don't want to have to write all 4 fields individually in the view, you'd need a custom widget, I don't see how an embedded form would do this. I have written a few custom widgets that represent several correlated values, such as 'clothing size' and 'clothing size key', which

Re: [symfony-users] Re: [1.3/1.4] How to best implement an address using the Symfony 1.3/1.4 Form Framework?

2010-02-03 Thread Stefan Paschke
Actually, the example I thought of was done with two separate widgets. But I found another, a form where the user can enter measurements in a choice of units (inches or centimeters). The etWidgetFormJQuerySliderWithUnits widget renders a jQuery UI slider. The unit widget is used over several

Re: [symfony-users] What do you use symphony for?

2010-02-01 Thread Stefan Paschke
Hi I have used symfony for two social network sites, one being a restaurant recommendation site, the other a casting platform for movie actors / producers. Both are based on quite complex relational databases which I model with Propel, enjoying its speed and flexibility. The main part of my

[symfony-users] sfPropelParanoidBehaviorPlugin not available any more?

2010-01-21 Thread Stefan Paschke
Hello migrating my project to 1.3 / 1.4, I just noticed sfPropelParanoidBehaviorPlugin is not working any more. I tried re-installing with symfony plugin:install sfPropelParanoidBehaviorPlugin but I get the error message No release available for plugin sfPropelParanoidBehaviorPlugin

[symfony-users] generic way to tell if a Propel object has i18n

2009-11-23 Thread Stefan Paschke
Hi all I am trying to write a Propel behaviour to check before saving a new object if a row with identical values already exists. This should also work with i18n objects, so I need a good way to tell if a Propel object has i18n, without using the specific i18n accessors, which always contain

Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-20 Thread Stefan Paschke
Hi Germana On Nov 20, 2009, at 1:43 AM, Germana Oliveira wrote: Wel i have this in my lib/form/AudienciaForm.class.php public function configure() { if ($this-isNew()) { $conciliadorForm = new AudienciaConciliadorForm(); $denuncianteForm = new PersonaForm(null,

Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-19 Thread Stefan Paschke
( $this-object-getPersona(), $this-options ); $this-embedForm( persona, $persona_form ); } otherwise, the Audienca object won't know what to do with the embedded Persona, I guess. regards Stefan On Nov 19, 2009, at 5:16 PM, Germana Oliveira wrote: Stefan Paschke escribió: Hi Germana I

Re: [symfony-users] Re: Save embedded forms at diferent times

2009-11-18 Thread Stefan Paschke
Hi Germana I have to embedded Forms into a main Form, and i have to do this process: 1. Save the embedded Form number1 2. Save the main Form (the main Form have some Foreing Key from Embedded Form number1) that is pretty much standard. why does it not work? How do you configure the first

[symfony-users] Re: sfValidatorPropelUnique fails on updates - 1.2

2009-11-16 Thread Stefan Paschke
Hi I just ran into the same problem, and while I found the solution in this discussion, I think it is not clear enough, so let me repeat briefly, in case anyone comes across this in the future: like Richtermeister says, the problem can be solved by adding a _uniques key to the schema, and using