[symfony-users] Multiple submit buttons/Multiple forms

2010-10-13 Thread Parijat Kalia
Hi everyone, I have a page with a form [?], and this page actually has 2 operations possible in it. So essentially multiple buttons are required, submit button 1 carries out function 1 of the form, submit button 2 carries out some other task. So essentially I think the answer is 2 forms, the way

Re: [symfony-users] Multiple submit buttons/Multiple forms

2010-10-13 Thread Gareth McCumskey
In each forms class that you define set the name format for each form differently. For example in a forms configure() method: $this-widgetSchema-setNameFormat('form1[%s]'); The second form give it a different name format. Then in the action that recieves the post: if ($request-isMethod('post'))

[symfony-users] distinguishing between task and web request

2010-10-13 Thread axel at
hello, I need to distinguish if a model function was called within a web request or run within a task (to avoid error thrown by sfContext::getInstance() when executed within a taks) thx for your help -- If you want to report a vulnerability issue on symfony, please send it to security at

Re: [symfony-users] distinguishing between task and web request

2010-10-13 Thread Stéphane
You can check for isset($_SERVER['HTTP_HOST']) I guess, Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed, Oct 13, 2010 at 11:08 AM, axel at axel.zu...@gmail.com wrote: hello, I need to

[symfony-users] Re: distinguishing between task and web request

2010-10-13 Thread axel at
works for me thx a lot! On 13 Okt., 11:09, Stéphane stephane.er...@gmail.com wrote: You can check for isset($_SERVER['HTTP_HOST']) I guess, Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Wed,

Re: [symfony-users] Tracking down issue in factories

2010-10-13 Thread Thomas Rabaix
You can apply this patch : You can apply this patch, this will add extra time information about the factory loading steps. The patch also disable the class autoload as it slow down the dev environnement. On Tue, Oct 12, 2010 at 11:42 PM, ashton ahonn...@gmail.com wrote: I am experiencing an

Re: [symfony-users] Re: distinguishing between task and web request

2010-10-13 Thread Thomas Rabaix
You are doing something wrong, models must be context independant On Wed, Oct 13, 2010 at 11:17 AM, axel at axel.zu...@gmail.com wrote: works for me thx a lot! On 13 Okt., 11:09, Stéphane stephane.er...@gmail.com wrote: You can check for isset($_SERVER['HTTP_HOST']) I guess,

[symfony-users] Re: distinguishing between task and web request

2010-10-13 Thread axel at
I am aware of that, but then I have to change my question: I've got a modell with 1:n related objects and I need to change some settings preCreate the related objects how can I access the (new generated) objects that are created via embedded forms in the controller action: processForm...

Re: [symfony-users] distinguishing between task and web request

2010-10-13 Thread Georg
execute sfContext::createInstance($this-configuration); in the task as the first line in execute(). I have always wondered why this is not done by default in tasks... Am 13.10.2010 11:08, schrieb axel at: hello, I need to distinguish if a model function was called within a web request or

[symfony-users] Actions base class issue with Doctrine generator

2010-10-13 Thread Damiano ALBANI
Hello, Ticket #5995 http://trac.symfony-project.org/ticket/5995 added the possibility of specifying the actions_base_class in the Doctrine admin generator.yml file. This works fine for *adding* new actions, as in this

[symfony-users] Fwd: Variável de um form

2010-10-13 Thread Gerda Graciela Rodrigues
-- Mensagem encaminhada -- De: Gerda Graciela Rodrigues gerd...@gmail.com Data: 13 de outubro de 2010 09:58 Assunto: Variável de um form Para: symfony...@googlegroups.com Pessoal, bom dia! Como pego uma variável de form. Gostaria de na protected function

[symfony-users] Re: Any way to generate backend lists using div instead of table ?

2010-10-13 Thread Massimiliano Arione
On 12 Ott, 17:52, Javier Garci tirengar...@gmail.com wrote: anyway to generate backend lists using div instead of table ? Without modifying too much the symfony generator... Why? Tableless is *not* an absolute value. cheers Massimiliano -- If you want to report a vulnerability issue on

Re: [symfony-users] Any way to generate backend lists using div instead of table ?

2010-10-13 Thread Gareth McCumskey
Not using tables for LAYOUT is a good idea. NOT using tables for displaying tabular data is not. Leave it as it is. Tables were designed to help you display ... well ... a table of data On Tue, Oct 12, 2010 at 5:52 PM, Javier Garci tirengar...@gmail.com wrote: Hi, anyway to generate backend

[symfony-users] SF2 : How to not store a service in the cache

2010-10-13 Thread gordonslondon
Hi, i work with Symfony 2. I have a service which use the current subdomain as a constructor parameter, this parameter is variable, so if we go to a subdomain and after on another subdomain, the parameter is still on the first subdomain. I would like to now if there's a way to disable cache

RE: [symfony-users] Symfony2 - MongoDB extension not loadable?

2010-10-13 Thread Daniel Kucharski
Hi Tim, It wasn't as there was nothing stated in the online documentation about it. After adding it to the kernel, I still receive the same error, even when clearing the cache. From: symfony-users@googlegroups.com [mailto:symfony-us...@googlegroups.com] On Behalf Of Tim Nagel Sent:

[symfony-users] Cache system with uri parameters

2010-10-13 Thread Nei Rauni Santos
Hi everyone, My website has some links ( adwords ) like this: http://www.example.com/?gclid=CMi22_C20KQCFdFO2god7lcTDE r...@host:/# ls /home/site/cache/frontend/prod/template/www_site_com/all/supplier/presentation/gclid/ Display all 4210 possibilities? (y or n) CI-14ML1w6QCFUFl7Aodq0nlEQ/

[symfony-users] Re: This is nuts, SwiftMailer trying to connect to localhost SMTP even if delivery strategy is none

2010-10-13 Thread Pierre-Yves LEBECQ
Did you put the good parameters in your factories.yml ? dev: mailer: param: delivery_strategy: none transport: class: Swift_NullTransport On 12 oct, 07:25, bzarzuela bzarzu...@gmail.com wrote: A simple call to $mailer-composeAndSend is driving me nuts. public

Re: [symfony-users] Clear cache in action

2010-10-13 Thread Pierre-Yves LEBECQ
Did you try to instanciate the sfClearCacheTask and run it ? I see no reason for this not to work. $ccTask = new sfClearCacheTask(); $ccTask-run(); -- Pierre-Yves LEBECQ 2010/10/12 Sela Yair tzi...@gmail.com is there a single command in sfConfigCache to clear all the cache? i want to

[symfony-users] POST and PUT in sfDoctrineRestGeneratorPlugin

2010-10-13 Thread ThomasG
Hello list, I'm testing sfDoctrineRestGeneratorPlugin and I got some problems to test the webservices. It works perfectly fine with GET and DELETE using curl -X GET http://localhost/webservices_dev.php/Test.json and curl -i -H Accept: application/json -X DELETE

[symfony-users] Does an input name necessarily match the database field name ?

2010-10-13 Thread Adrien Di Pasquale
Hello, I'm sorry, I guess the answer to my question is quite simple but i can't seem to be able to find it out. My keywords for describing the problem are too general, so my searches don't give anything ! My problem is this one : How to link an input whose name is

Re: [symfony-users] Doctrine JOIN model defined in schema with and one that isnt

2010-10-13 Thread Pierre-Yves LEBECQ
I would go in a very simple way : In your model class Profile, you could add a method which retrieves the PDO connection from doctrine and query the user table directly. It could look like this : class Profile extends BaseProfile { public function getUser() { $dbh =

[symfony-users] Symfony 2 and cache

2010-10-13 Thread Anton V. Arkhipov
Hello, all. I have 2 questions: 1. How I can disable routing cache in dev modules? 2. How I can see that components loading from cache as symfony 1.x? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message because

[symfony-users] Post and put problems

2010-10-13 Thread Thomas GRATIER
Hello list, I'm testing sfDoctrineRestGeneratorPlugin and I got some problems to test the webservices. It works perfectly fine with GET and DELETE but I supposed I miss something with POST and PUT methods (maybe understanding of REST...) because I only retrieve a 406 error. My table structure is

AW: [symfony-users] Re: Routing with fallthrough

2010-10-13 Thread Sven Riecker
I don't think that's possible. symfony cannot know which module the slug belongs to when there is no difference between the slugs except the slug itself. But maybe there is a solution that I don’t know, I am quite new to symfony. Maybe it is possible to find out, which class belongs to the slug

Re: [symfony-users] Re: Form Submition

2010-10-13 Thread Macvek
In Jobeet tutorial : http://www.symfony-project.org/jobeet/1_4/Doctrine/en/10 There is an example in Job Activation and Publication Regards, Maciej Aleksandrowicz 2010/10/12 guiguiboy guillaume.bre...@gmail.com As Christopher Schnell said, you have to use flash messages. Guillaume B. On

[symfony-users] Re: Custom Forms (sfWidgetFormDoctrineChoice)

2010-10-13 Thread omar
can u post your solution to help others pls? -- 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] Not able to install symfony 1.0.17 from pear.

2010-10-13 Thread tejaswi
Hi Guys, I am not able to install symfony 1.0.17 through pear channel. and getting the below Msg -- r...@brijjsetup3:/usr/local/php/bin# pear install

[symfony-users] Re: sfGuardUser

2010-10-13 Thread Anton V. Arkhipov
No, sfGuardPlugin, disallow apply permissions to database records, but you make do self permission management for you tables/records. On 13 окт, 03:58, Dennis Gearon gear...@sbcglobal.net wrote: Not sure if this is the right place to ask this, let me know if not. From what I remember about

[symfony-users] Problem with fixtures and nested set behaviour schema

2010-10-13 Thread Benjamin
Hello, I have a schema with a nested set behaviour likes this: MName: columns: name: { type: string(45)} MValue: actAs: NestedSet: hasManyRoots: true rootColumnName: root_id columns: value: { type: string(45) } mname_id: { type: integer } relations: MName:

[symfony-users] I18n not works, extract delete previous translations

2010-10-13 Thread Jaime
Hi, I'm developing an application with symfony 1.4, and it needs to be translated in three languages. But the translations doen't works. I set frontend/config/settings.yml all: .settings. # I18n activado i18n: true # cultura predeterminada default_culture: es #

[symfony-users] ahDoctrineEasyEmbeddedRelations - problem with embedded relations within embedded relations

2010-10-13 Thread progfrog
- form uses embedRelations to embedd relation that already uses embedRelations - considerNewFormEmptyFields is set for embedRelations in inner form - inner form works when is used for itself - inner embedded relations do not pass validation when form that hold those is embedded in other form

Re: [symfony-users] ahDoctrineEasyEmbeddedRelations - problem with embedded relations within embedded relations

2010-10-13 Thread Daniel Lohse
In short, you can't because nested embedded relations with my plugin are impossible, sorry. I'm also sorry to tell you that I won't have time to implement it because the code was not made with this use-case in mind. May I suggest that you take a look at this instead (developed by one of

[symfony-users] Re: ahDoctrineEasyEmbeddedRelations - problem with embedded relations within embedded relations

2010-10-13 Thread progfrog
thank you for your quick response, I will look at sugessted plugin. On Oct 13, 9:39 pm, Daniel Lohse annismcken...@googlemail.com wrote: In short, you can't because nested embedded relations with my plugin are impossible, sorry. I'm also sorry to tell you that I won't have time to implement

[symfony-users] autoloading

2010-10-13 Thread KrosseKrabbe
Hi, i tried to reproduce the form example from the docs: $form = new Form('customer', $customer, $this-container- getValidatorService()); $form-add(new TextField('name')); $form-add(new IntegerField('age')); But even if i add the use-instructions i' use

Re: [symfony-users] Does an input name necessarily match the database field name ?

2010-10-13 Thread Bernhard Schussek
Hi, Try to override the doUpdateObject() method in your form. It receives the values of the form as parameter and is responsible for saving them in $this-object (your record). protected function doUpdateObject($values) { parent::doUpdateObject($values); $this-object-from_city_name =

Re: [symfony-users] Multiple submit buttons/Multiple forms

2010-10-13 Thread Parijat Kalia
tHANKS Gareth!!! On Wed, Oct 13, 2010 at 12:08 AM, Gareth McCumskey gmccums...@gmail.comwrote: In each forms class that you define set the name format for each form differently. For example in a forms configure() method: $this-widgetSchema-setNameFormat('form1[%s]'); The second form give

[symfony-users] [Symfony 2] Access info of the actual request from a template?

2010-10-13 Thread Gustavo Adrian
Hi! In Symfony 1.x you can access the request object from a template. With this object you can know which module / action was executed so, for example, you can mark a link of the navbar as selected to show the user in which section he is. How can I do this on Symfony 2? is there a way to do this

[symfony-users] Re: [Symfony 2] Access info of the actual request from a template?

2010-10-13 Thread Gustavo Adrian
Ooops, I've just found one line in the docs that answers just this XD.. I've read it twice and just now found it: $view[ 'request' ]. What I don't know now is how to retrieve the module and the action from the request? On Symfony 1.x it was $sf_request-getParameter( 'module' ) /

[symfony-users] How work sfErrorNotifierPlugin

2010-10-13 Thread Martin Ibarra Cervantes
Hi, how work sfErrorNotifierPlugin in the README file * In the file /plugins/sfErrorNotifierPlugin/config/app.yml, set the email address(es) to deliver the notifications to, for the environments you want to enable (tipically only 'prod'). You can comma-separate multiple recipients. {{{