[symfony-users] Re: Embed sfGuardUserAdmin yet permissions are not saved

2010-05-27 Thread Eduardo Marcolino
I'm facing the same issue. Any progress?? On 7 maio, 12:37, João Soares wrote: > Hi all, > > I've seen a lot of examples on how to embed a profile to the > sfGuardUserAdminForm. What I want to do is the exact opposite, I have > a form, UserForm, and I embed the sfGuardUserAdminForm. > > Everythin

Re: [symfony-users] how to change text label attached to new link in embedRelation form

2010-05-27 Thread Eno
On Thu, 27 May 2010, Tofuwarrior wrote: > I have successfully use embedRelation to embed a relation in my form > BUT the new link at the bottom has a label next to it that says > NewUglyLongPropelObjectName . > > How can I change this, I haven't set any new link anywhere so I'm not > sure how to

[symfony-users] sfGuardPlugin credential name in secureSuccess.php

2010-05-27 Thread Donald
I'm trying to write a custom secureSuccess.php page for the sfGuardPlugin, and I need to access the credential that caused the user to be re-directed there. Does anyone know if it's possible to access this value from the view? I can see where the value is checked in sfBasicSecurityFilter- >execut

[symfony-users] Como convertir un formulario embebido en un objeto del modelo?

2010-05-27 Thread Maria L
Buenas noches a todos. Soy nueva en el grupo y tengo una duda que no hallo como resolver, ya he leido unos cuantos debates presentados aqui pero no he podido dar con la respuesta, por lo que acudo a ustedes a ver si me dan una manita :). Mi duda es en cuanto a formularios embebidos. Actualmente

[symfony-users] Add form widgets dynamically from javascript

2010-05-27 Thread fRAnKEnSTEin
Hi, Curret work: I have created a regular form class called "stepOne" using form framework, so it have some widgets and validators.Now in one of my frontend templates i have created a link called "add", when the user click over this link, it fires a javascript AJAX method called "addrow" that cre

[symfony-users] Re: Possible Bug?

2010-05-27 Thread Ozzy
Hi, It is not exactly the same but similar. In my situation, Symfony does not permit me the modify the id field, when I enter a different id for the primary key (by changing the hidden form field), it gives an error and does not perform the operation. Only when I send an empty id, the validation b

Re: [symfony-users] how to change text label attached to new link in embedRelation form

2010-05-27 Thread Stéphane
Hi, $this->getWidget($uglyName)->setLabel('my smart label'); Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Fri, May 28, 2010 at 12:25 AM, Tofuwarrior wrote: > I have successfully use embedRelation

Re: [symfony-users] Re: Possible Bug?

2010-05-27 Thread Michał Piotrowski
Hi, 2010/5/28 Jonathan Wage : > It is a bug for sure. We'll take a look and see if we can come up with a > workable patch. Same problem here AFAIUI http://trac.symfony-project.org/ticket/8639 Regards, Michal -- If you want to report a vulnerability issue on symfony, please send it to security

Re: [symfony-users] Re: Possible Bug?

2010-05-27 Thread Jonathan Wage
It is a bug for sure. We'll take a look and see if we can come up with a workable patch. Thanks, Jon On Thu, May 27, 2010 at 6:52 PM, Ozzy wrote: > Anyone? This causes a problem in my site as there are users learned > it. That is why this is very urgent for me. > > On May 27, 7:50 pm, Ozzy wro

[symfony-users] Re: Possible Bug?

2010-05-27 Thread Ozzy
Anyone? This causes a problem in my site as there are users learned it. That is why this is very urgent for me. On May 27, 7:50 pm, Ozzy wrote: > Hi, > > I have encountered a problem when working on Symfony. > > I think it is a bug, I have reported it by a ticket, but I also wanted > to ask for y

[symfony-users] how to change text label attached to new link in embedRelation form

2010-05-27 Thread Tofuwarrior
I have successfully use embedRelation to embed a relation in my form BUT the new link at the bottom has a label next to it that says NewUglyLongPropelObjectName . How can I change this, I haven't set any new link anywhere so I'm not sure how to change this. Is it a widget set somewhere. Anyone?

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-27 Thread Tofuwarrior
Hi Tom, I have eventually sorted the problem by simply adding the fields to the table, thus removing the need for embedded field, the abstraction of the contact details wasn't actually necessary when I reviewed it BUT I think the issue was to do with where the FK was. With sfGuardUSerProfile the

[symfony-users] another ajax doubt

2010-05-27 Thread Parijat Kalia
So guys, sorry for deviating this off topic, but it is ajax based and web based, so I suppose it is an integral part of the development. anyways, I have a drop down, consisting of a set of numbers, depending on the number the user chooses, I want to replicate that many textfields on my page. Curre

[symfony-users] Symfony and slider

2010-05-27 Thread pierrix
I want to use a slider to rate a transaction. It seems that script aculous slider is adapted for this mind. I use symfony 1.0. Could someone show me an example ? Thank you. Bye -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You r

[symfony-users] Re: Problems with doctrine and Oracle 10g

2010-05-27 Thread Andres Villaquiran
sORRY, I had a mistake, when i wrote: SMIS_SIS_ORGANIOZACION IS THE ORACLE SYNONYM OF SMI_SIS_ORACLE. must be SMIS_SIS_ORGANIZACION IS THE ORACLE SYNONYM OF SMI_SIS_ORGANIZACION. - Original Message From: Andres Villaquiran To: symfony-users@googlegroups.com Cc: SMI Sistemas Sent:

[symfony-users] Problems with doctrine and Oracle 10g

2010-05-27 Thread Andres Villaquiran
Hello I'm new in Symfony. I have problems whe I try to retrieval data of an pre-existing data base table in oracle 10g. I TEST THE CONNECTION WITH ORACLE AND IT WORKING VERY WELL. Please, I will appreciate so much any help with you. My configuration is : Apache 2.0.63 php 5.2.13 OS: Win

Re: [symfony-users] configure getListBatchActions() in backend

2010-05-27 Thread Eno
On Thu, 27 May 2010, Ricardo wrote: > For example i log in with an advanced admin account, so I can see the > list batch action with the action delete. Then I log out and I log in > with a normal admin account, and the list with the action still there > and inversely . If I first log in with a nor

[symfony-users] sfDoctrineRestGeneratorPlugin

2010-05-27 Thread oliverratajc...@googlemail.com
Hi everybody... i'm trying to use the sfDoctrineRestGeneratorPlugin. Installation and Generation seemed to work fine, but as soon as i try to make a request, it seems the autoXXXAction is not rendered correctly in the cache. In the response body, i receive the partial redered code of that class, s

[symfony-users] Re: how to prevent save in preInsert?

2010-05-27 Thread comb
that works! =) It prevent's the insert itself and I know, how to redirect back to the form, but I cannot figure out, how to display the given form values from the invoker again. My form is always empty :-/ class FloodCheckListener extends Doctrine_Record_Listener { //... public fun

[symfony-users] formatting embedded form with embedRelation - how?

2010-05-27 Thread Tofuwarrior
Hi, I have used embed relation to embed (a relation! amazing) And it is great, so quick to be able to add new stuff BUT It renders with the propel class name as the label for the whole embedded form which looks very clunky and I can't work out how I can change this or in fact how I can change th

[symfony-users] Re: Question about filter forms: search for exact words

2010-05-27 Thread Javier Garcia
Hi again, this seems is working ok: public function addProvinciaColumnQuery($query, $field, $value) { $fieldName = $this->getFieldName($field); $valor = array_values($value); if (!empty($valor[0])) { $query->andWhere(sprintf(

[symfony-users] Possible Bug?

2010-05-27 Thread Ozzy
Hi, I have encountered a problem when working on Symfony. I think it is a bug, I have reported it by a ticket, but I also wanted to ask for your opinion. Can you check that please: http://trac.symfony-project.org/ticket/8704 Thanks. -- If you want to report a vulnerability issue on symfony, pl

Re: [symfony-users] Re: configure getListBatchActions() in backend

2010-05-27 Thread Tom Haskins-Vaughan
Can you not achieve this with credentials? On Thu, May 27, 2010 at 10:53 AM, Ricardo wrote: > Somebody can help me ? > > -- > 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 th

[symfony-users] Re: Experience in building news site in symfony?

2010-05-27 Thread pghoratiu
Really complex questions, besides the solutions you mentioned already there are other commercial alternatives that are less known, solutions that cost money but for which you get professional support and that can be quite handy. Two such projects (there are probably many more) built upon symfony:

[symfony-users] propel1.5 abstract models and concrete inheritance

2010-05-27 Thread Robert Schoenthal
he folks, im playing around with propel1.5 and the new features. i ran into 2 strange behaviors: here is my simple schema first: propel: garden: id: name: { type: varchar(255) } plant: _attributes: { abstract: true } id: common_name: { type: varchar(255) } latin_nam

[symfony-users] Edit/Diplay form content is not the same from database (production)

2010-05-27 Thread Popovich
Hi have a problem in the application i am creating when putting it in the server. Let´s say i have a typical form. I change to edit mode , change some values and save. Then i will redirect to the index page which shows the form data. The problem it´s that shows the old version of data. If i refres

[symfony-users] Re: sfFacebookConnectPlugin error

2010-05-27 Thread Fabrice Bernhard
> I will try that.  Thanks, > > One thing i noticed that was said was that if you use > getSfGuardUserByFacebookSession then you cannot logout the user unless > facebook is logged out. No, this has nothing to do with this, it has to do with the FacebookRememberMeFilter. -- If you want to report

[symfony-users] Re: configure getListBatchActions() in backend

2010-05-27 Thread Ricardo
Somebody can help me ? -- 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.co

Re: [symfony-users] Re: how to prevent save in preInsert?

2010-05-27 Thread Daniel Lohse
http://www.doctrine-project.org/projects/orm/1.2/docs/manual/event-listeners/en#dql-hooks scroll down a little bit to the line: $event->skipOperation(); This should do what you want? Daniel On 27.05.2010, at 16:41, comb wrote: > Hey thanks, but it does not work :-( > class FloodCheckListener

[symfony-users] Re: Custom directory structure

2010-05-27 Thread Ragnis
Nothing changed. Still theese errors: Warning: require(/home/xx/public_html/api/lib/vendor/symfony/lib/ plugins/sfDoctrinePlugin/lib/database/sfDoctrineDatabase.class.php) [function.require]: failed to open stream: No such file or directory in /home/xx/private_html/api/lib/vendor/symfony/lib/autol

Re: [symfony-users] Re: Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-27 Thread Garry Freemyer
Omg! I went through this same thing b/c the tutorial didn't mention to clear the cache. I am surprised I didn't remember the horror. I guess it caused some amnesia about ... what were we talking about? From: Ben Bieker To: symfony-users@googlegroups.com Sent:

[symfony-users] Re: how to prevent save in preInsert?

2010-05-27 Thread comb
Hey thanks, but it does not work :-( class FloodCheckListener extends Doctrine_Record_Listener { //... public function preInsert(Doctrine_Event $event) { return false; } } The record is saved anyway. On 27 Mai, 16:26, Robert Schoenthal wrote: > he,

[symfony-users] Re: how to prevent save in preInsert?

2010-05-27 Thread Robert Schoenthal
he, try to "return false" in your preInsert Method, it think it should work On May 27, 12:39 am, comb wrote: > Hi, > > i'm writing a CheckFloodable-Behavior. > Before a new record is saved, I would like to prevent the insertion of > the new record if the user did not wait long enough. > It's ver

Re: [symfony-users] Re: Zend Lucene not escaping search queries

2010-05-27 Thread Carlos Jorge Andrade
On 27, May 2010, at 12:40 , wueb wrote: Try to put your search query betweem commas. $query = ' " ' .$query.' " '; $hits = $index->find($query); Same thing. Then I found this http://35lf.sl.pt 2008!? If zend lucene is broken why is it in the framework then ? If this is bogus, why is it st

Re: [symfony-users] Re: Choice between database table, enum type and array in php class ?

2010-05-27 Thread Gilles Bernard
Hi Olivier, First thanks for your explanation about arrays in YML. When I see your example it seems now obvious to me, but it was not the case before... And about performance I definitely understand what you mean, as you say I will probably need to optimize the queries (left joins...). Thanks a l

[symfony-users] Re: Choice between database table, enum type and array in php class ?

2010-05-27 Thread Olivier
Yes, I’m thinking of app.yml. There are two ways of storing arrays in YAML: language: [english, french, german] or language: - english - french - german But if you already have tables for the title and the language and store the foreign key, then I’s suggest you keep it like that and simp

[symfony-users] Re: How can I use the sfWidgetFormDoctrineChoice widget as required true

2010-05-27 Thread Nei Rauni Santos
Thanks, It was in the sfValidatorDoctrineChoice validator. * * min:The minimum number of values that need to be selected (this option is only active if multiple is true) Nei On 26 maio, 15:43, Tugdual SAUNIER wrote: > try in the associated validator, it should be there. > > --- > Tu

[symfony-users] configure getListBatchActions() in backend

2010-05-27 Thread Ricardo
Hi everybody, In my backend I overload the method getListBatchActions() in the class groupeGeneratorConfiguration of my module 'groupe' : class groupeGeneratorConfiguration extends BaseGroupeGeneratorConfiguration { //.. public function getListBatchActions() { $user = Doctrine_Core::

[symfony-users] method_backned

2010-05-27 Thread safa boubekri
how can i call methode in the indexSuccess.php this method is delared in the action of module in backend -- 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] Re: sfWidgetFormDoctrineJQueryAutocompleter problem

2010-05-27 Thread wueb
I think is because the sfWidgetFormDoctrineJQueryAutocompleter send all to Javascript memory. There isn't any other Widget like this? On 27 Maio, 12:48, wueb wrote: > If i don't use any limit the page doesn't work, but if i limit for > example to 10 it works. > > On 27 Maio, 12:47, Olivier wrot

[symfony-users] Re: sfWidgetFormDoctrineJQueryAutocompleter problem

2010-05-27 Thread wueb
If i don't use any limit the page doesn't work, but if i limit for example to 10 it works. On 27 Maio, 12:47, Olivier wrote: > Are you making use of the `limit` parameter given to the AJAX action > in your database request? -- If you want to report a vulnerability issue on symfony, please send

[symfony-users] Re: sfWidgetFormDoctrineJQueryAutocompleter problem

2010-05-27 Thread Olivier
Are you making use of the `limit` parameter given to the AJAX action in your database request? -- 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" g

[symfony-users] Re: Zend Lucene not escaping search queries

2010-05-27 Thread wueb
Try to put your search query betweem commas. $query = ' " ' .$query.' " '; $hits = $index->find($query); On 27 Maio, 10:55, Carlos Jorge Andrade wrote: > Hi, > > Anyone who uses Zend_Lucene can confirm that it doesn't search for   > escaped query terms ? > There's a section on the manual that ta

[symfony-users] Re: Zend Lucene not escaping search queries

2010-05-27 Thread wueb
Try to put your search query betweem commas. $query = ' " ' .$query.' " '; $hits = $index->find($query); On 27 Maio, 10:55, Carlos Jorge Andrade wrote: > Hi, > > Anyone who uses Zend_Lucene can confirm that it doesn't search for   > escaped query terms ? > There's a section on the manual that ta

[symfony-users] sfWidgetFormDoctrineJQueryAutocompleter problem

2010-05-27 Thread wueb
Hello, I'm having problems with sfWidgetFormDoctrineJQueryAutocompleter. When the number of values to load is small it works very well, but when they are many (more than 500 for example) the page stop working. This happen only in webserver, not in localhost. Any idea what can be? -- If you wan

[symfony-users] Re: Trying to load a .css from sfJqueryReloadedPlugin

2010-05-27 Thread Javier Garcia
Sorry, my fault... Javi On May 27, 12:21 pm, Tom Ptacnik wrote: > What is the generated url for loading the css file ... look into your > browser and show source fo the web page. > > Isn't it  /css/sfJqueryReloadedPlugin/css/ui-lightness/jquery- > ui-1.7.2.custom.css ? > > On 26 kvě, 12:08, Javi

Re: [symfony-users] Using Swift_Mailer in sf 1.4

2010-05-27 Thread Susan Lau
If I see it correct, the array for the address supposed to be the other way around. $mail = $this->getMailer()->compose( array($sender_email => $sender_name), // from array($sender_email => $sender_name), // to $subject, $message ); NOOVEO - Christophe Brun wr

[symfony-users] Re: Trying to load a .css from sfJqueryReloadedPlugin

2010-05-27 Thread Tom Ptacnik
What is the generated url for loading the css file ... look into your browser and show source fo the web page. Isn't it /css/sfJqueryReloadedPlugin/css/ui-lightness/jquery- ui-1.7.2.custom.css ? On 26 kvě, 12:08, Javier Garcia wrote: > Hi, > > i have this lines: > > use_javascript('/sfJquery

[symfony-users] Re: Question about sfDoctrineGuardPlugin and signing

2010-05-27 Thread Javier Garcia
Well, It looks like smart..I just saw it in facebook. Javi On May 27, 9:43 am, Tom Ptacnik wrote: > Why do you want to do that? > > On 24 kvě, 15:39, Javier Garcia wrote: > > > Hi, > > > by default, using sfDGP, when i try to execute an action of an > > application with security activated, the

[symfony-users] Re: generator.yml : how to add a custom "edit" action ?

2010-05-27 Thread Tom Ptacnik
You can't do that over the generator.yml You have to create it by yourself - create an action methods, routing for them (edit, update), create a new form class something like sfGuardUserProfileForm.class.php ... extended from the base form class, templates - you can copy them from the cache folde

[symfony-users] Zend Lucene not escaping search queries

2010-05-27 Thread Carlos Jorge Andrade
Hi, Anyone who uses Zend_Lucene can confirm that it doesn't search for escaped query terms ? There's a section on the manual that talks about this (Escaping Special Characters), and mentions that you only need to place the usual \ before de character... but Zend_Lucene is just ignoring it.

[symfony-users] Using Swift_Mailer in sf 1.4

2010-05-27 Thread NOOVEO - Christophe Brun
Ladies & gentlemen, I'm stuck with some configuration issue (at least I guess it is one...). I sent mails with the sfDoctrineApplyPlugin when a user registers, the plugin uses ZendMail by default and things work as expected. In another module, I sue the default mailer for the application, he

[symfony-users] Re: best practice to save nb_comments

2010-05-27 Thread Tom Ptacnik
I like this solution with postInsert(). It looks better to me than the listener method :) On 26 kvě, 23:23, comb wrote: > hmm.. you're right.. cannot get the simplest things some times...:-D > But a last question: Isn't it easier to use the PostInsert Record-Hook > of the Doctrine_Record than to

[symfony-users] Re: Custom directory structure

2010-05-27 Thread Tom Ptacnik
I think it can be done easily... it's just about moving the web folder somewhere else. And you have to configure you virtual in a right way of course. Virtual - classic - for you into public_html/api don't forget for alias for vendor/symfony/data/web/sf (The Alias statement is necessary for the

[symfony-users] Re: Experience in building news site in symfony?

2010-05-27 Thread Bob
I am working in the company, where we recently had the similar situation, so we had to make a decision for building news site. Our team experience was Drupal, and we are not quite happy about its complexity and OOP-less. The solution which we choice was Diem. Mostly because of ease for development

[symfony-users] Re: problem rendering embedded form when in edit

2010-05-27 Thread Tom Ptacnik
Ok, I think the problem might be in the actions I think you should realy move the embedForm function to the configure method of the form class - the form class will be more compact. And the thing that the rendering of the form is ok, and after the clicking on the save button the problem appers

[symfony-users] Re: created_at in FormFilter

2010-05-27 Thread Tom Ptacnik
I don't know if others does, but I don't get the question :) On 25 kvě, 03:01, Germana Oliveira wrote: > Hi!! > > i have a table on MySQL with a  created_at field : > ... > created_at     | datetime > ... > > In my symfony project i just begin working with Filters (FormFilter). > I have this: >

[symfony-users] Re: Question about sfDoctrineGuardPlugin and signing

2010-05-27 Thread Tom Ptacnik
Why do you want to do that? On 24 kvě, 15:39, Javier Garcia wrote: > Hi, > > by default, using sfDGP, when i try to execute an action of an > application with security activated, the signin form appears but the URL > doesn't change to "frontend_dev.php/login". > > So, what should i do to get cha

[symfony-users] Re: Question about a piece of code in sfDoctrineGuardPlugin

2010-05-27 Thread Tom Ptacnik
Do you mean why sfConfig::get('app_sf_guard_plugin_success_signin_url'); is different from $user->getReferer($request->getReferer())); ? On 24 kvě, 19:00, Javier Garcia wrote: > Hi, > > there is this code below in sfDoctrineGuardPlugin. > > $a = sfConfig::get('app_sf_guard_plugin_success_signin_

[symfony-users] Re: Dynamic Forms

2010-05-27 Thread Tom Ptacnik
I think it's easy to do that with classic Symfony sfForm with hand made template ;) Read this http://www.symfony-project.org/forms/1_4/en/03-Forms-for-web-Designers and you will solve your situation. On 24 kvě, 16:01, Asier wrote: > Hi there, > > I started with a form, which is made by hand b

Re: [symfony-users] Re: Jobeet Tutorial - Day 3 - databases.yml problem

2010-05-27 Thread Ben Bieker
Hi, yeah maybe that was the problem that sth wrong was stuck in the cache. I'm new to Symfony too but what I've learned so far is if sth goes wrong, clear the cache first, if it goes wrong again, then you have a problem ;) Most of the time you got to clear the cache when you have new classes for

[symfony-users] Re: Relative path with reverse proxy

2010-05-27 Thread pghoratiu
You will probably have to implement your own set of helpers and use those instead of the the ones provided by symfony: include_javascripts() -> my_include_javascripts() include_stylesheets() -> my_include_stylesheets() link_to -> my_link_to() image_tag -> my_image_tag() And in those you can manipul