Re: [symfony-users] sfForm button widgets?

2010-05-04 Thread Gareth McCumskey
Do you really need them to be in one form? NOTE: It is a bad idea to use the tag as the way they are handled by different browsers varies very widely so best not to use it. A quote from W3Schools: "Important: If you use the button element in an HTML form, different browsers will submit dif

[symfony-users] Re: How to embed forms with 2 relations (embedRelation)

2010-05-04 Thread saki
Should I create a module for the LinkPartnerService table? (which contains the relation between partners and services?) Thx! On máj. 4, 13:37, saki wrote: > Hi! > > Please to help me to solve this... There are partners (firms). > Partners have services. Services have notes. Partners - Services u

[symfony-users] Re: doctrine mysql driver

2010-05-04 Thread fRAnKEnSTEin
Did you ran "check_configuration.php" using a browser or using a terminal window? Remember that the PHP program that the browser uses may differ from the one that the terminal uses. So maybe you are getting this error because you are seeing the configuration of the wrong PHP. Run "check_configurat

[symfony-users] Re: $this->getRequest()->isMethod('post')

2010-05-04 Thread fRAnKEnSTEin
Hi there, If you are inside some controller action you can try "$request- >isMethod('post')" instead "$this->getRequest()->isMethod('post')" Tell me what happen if you give it a try... Cheers -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-pro

Re: [symfony-users] $this->getRequest()->isMethod('post')

2010-05-04 Thread Parijat Kalia
so the form is form_tag('admin/otherPage')...which by default makes it a post. And the button is nested within the form, which implies that it posts when the submit button is hit. This deviates from the actual question, which is, why is the post method being recognized when it is being directed fro

Re: [symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin with javascript/ajax

2010-05-04 Thread Daniel Lohse
Hey there, the plugin developer here. :) Just to confirm: 1. How did you install the plugin (via the symfony plugin:install task, via Subversion or Git)? 2. Are you already using any JavaScript framework in your symfony project? You'll need to have jQuery for this part to work as the contributo

Re: [symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Sela Yair
thanks, that what i was after. On 4 May 2010 18:27, Casey wrote: > Doctrine make this easier. The way you are doing it works, but it may > be harder to maintain in the future. I would reccommend something > like this: > > MemberForm.class.php:: > function configure(){ > parent::configure();

[symfony-users] Re: Directory locked after svn pe svn:externals lib/vendor/

2010-05-04 Thread pghoratiu
Try deleting the lib/vendor/symfony directory and doing a svn up afterwards. gabriel On May 4, 11:17 pm, Pau Peris wrote: > Hi to all an thanks for the answers, but i still have the same issue. >   svn cleanup did nothing for me > I run: svn pe svn:externals lib/vendor/ > > and wrote: symfon

Re: [symfony-users] Re: Directory locked after svn pe svn:externals lib/vendor/

2010-05-04 Thread Pau Peris
Hi to all an thanks for the answers, but i still have the same issue. svn cleanup did nothing for me I run: svn pe svn:externals lib/vendor/ and wrote: symfony http://svn.symfony-project.com/tags/RELEASE_1_4_0 # svn up lib/vendor/ Fetching external item into 'lib/vendor/symfony' svn: warning: Wo

[symfony-users] Different form filters generated

2010-05-04 Thread Javier Garcia
Hi, i have this class in rs1/lib/filter/doctrine/FelizFormFilter.class.php * @versionSVN: $Id: sfDoctrineFormFilterTemplate.php 23810 2009-11-12 11:07:44Z Kris.Wallsmith $ */ class FelizFormFilter extends BaseFelizFormFilter { public function configure() { } } and this in rs2/lib/

[symfony-users] Doctrine routes with additional parameters.

2010-05-04 Thread Philip G
I'm trying to build a Doctrine route, using additional parameters, but I can't seem to get it to even pass the url generator. In my template, I have: 'put')) ?> I'm trying to get either: deployment/id/approve/qa or deployment/id/ approve?group=qa I started out with 'deployment_approve?group=qa'

[symfony-users] symfony 1.0 + forms

2010-05-04 Thread Anasteziya
Hello! I'm new in symfony and try to understand how it works and work with it. I created the form by using form's helpers and want to call another action with form's parameters. Function executeCreate takes parameters from form and redirected to the report action. public function executeCreate()

[symfony-users] doctrine mysql driver

2010-05-04 Thread sergi borras
Hello, We installed Symfony in BlueHost, created the php.ini file enabling pdo_mysql, and ran check_configuration.php We are getting the following output from check_configuration.php * * * symfony requirements check * *

[symfony-users] ahDoctrineEasyEmbeddedRelationsPlugin with javascript/ajax

2010-05-04 Thread Luc Didry
Hello everybody, I'm trying to embed project forms while creating a client with the ahDoctrineEasyEmbeddedRelationsPlugin. It's a one to many relation : a client may have many projects and a project belongs to one client. The embedded form works well, the client and the project are created and a p

Re: [symfony-users] Re: Hidden field in backend

2010-05-04 Thread Augusto Flavio
Hi Casey, yes. The correct is widgetSchema. I was using setWidgets. Thanks. Augusto Morais -- 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"

[symfony-users] Re: nahoMail, symfony 1.4, and swift

2010-05-04 Thread Casey
you could add another swift folder into lib/vendor, and then set up the autoload.yml There is a good description of how to use autoload.yml here: http://www.symfony-project.org/tutorial/1_4/en/upgrade#chapter_161aacbf11b8cc24bbdc6951ba0fb57d_autoloading There is further documentation here: http:/

[symfony-users] Re: How overwrite addFiltersCriteria in symfony 1.4?

2010-05-04 Thread Richtermeister
Hey there, that is why some filter inputs (like the date filter field for example) have 2 fields with the same name, that way they get submitted as an array and you have access to both values in the addXXXColumnQuery method. Please look at the auto-generated forms. It's all there. Daniel On Ma

[symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Casey
Doctrine make this easier. The way you are doing it works, but it may be harder to maintain in the future. I would reccommend something like this: MemberForm.class.php:: function configure(){ parent::configure(); $this->getObject()->user_id = sfContext::getInstance()->getUser()- >getGuardU

[symfony-users] Re: Question about forms: reuse the widgets set in the parent class or not ?

2010-05-04 Thread Casey
The way you have done it works. Another idea is to add a method to your original form, such as makeAbbreviated(), where you make necessary changes to the form's appearence/functionality before showing it to the user. Those changes could include adding/removing widgets and validators, I think you

[symfony-users] Re: Inheritance of many-to-many relation?

2010-05-04 Thread comb
thanks for answering. How do I create some fixtures for the relation between the following two objects? fixtures.yml User: user_0: name: Tim Video: video_0 title: a cool video UserProduction: video_0_user_0: User: user_0 Production: video_0 fails: "Invalid row key specified

[symfony-users] Re: Hidden field in backend

2010-05-04 Thread Casey
You could just add the hidden field to the form class like: $this->widgetSchema['secret_hidden_field'] = new sfWidgetFormInputHidden(); don't forget to add the validator. If I remember correctly there is a call to renderHiddenFields() already in _form.php. You should only have to change the for

[symfony-users] Re: saving something in doSave that relies on the PK of the main form

2010-05-04 Thread Casey
I assume you are using doctrine. You may want to try setting a relationship i.ie: function doSave(){ $client->Logs[] = $log; $client->save(); } that should save the client first and then add the log (assuming the client is not already in the db) and save the log. You could also do it more

[symfony-users] WorkAround for Ticket #8500

2010-05-04 Thread David DUPONT
Hi, I'm new user with Symfony Framework. I use "sfWidgetFormInputFileEditable" in embedRelation. The "remove file" doesn't work. This Problem is related in Ticket #8500 (sfWidgetFormInputFileEditable dont delete file when is in form embeded by embedRelation). When this bug will be corrected? Do

[symfony-users] sfWidgetFormDoctrineChoice

2010-05-04 Thread Md Mostafizur Rahman milon
my a form definition is follows:- $this->setWidgets(array( 'id' => new sfWidgetFormInputHidden(), 'username' => new sfWidgetFormInputText(), 'email'=> new sfWidgetFormInputText(), 'algorithm'=> new sfWidgetFormInputText(), '

[symfony-users] Re: two modules, one model

2010-05-04 Thread Casey
try copying the module's folder and renaming it, that should do the trick, although there might be some routing issues that you will have to deal with, hth, Casey On May 3, 9:05 pm, Abraham wrote: > Can i generate more than one admin-generator-module from a same model? > I'm trying with the comm

[symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread SatBoy78
yes, I'm using backend_dev.php and I've seen log file: all flags are green, no one is red... thanks a lot -- 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 "symf

[symfony-users] sfForwardException - Too many forwards have been detected for this request (> 5)

2010-05-04 Thread Guychmyrat Amanmyradov
Hello, i was following http://www.symfony-project.org/book/1_0/16-Application-Management-Tools And , followed commands. My project was working fine. But know it gives me this error : stack trace at () in SF_ROOT_DIR/lib/symfony/controller/sfController.class.php line 172 ...   $error

Re: [symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread mehdi hadef
To view error log in web page (instead of the blank page), check you have fo_dev.php in your url. 2010/5/4 Daniel Lohse > It's in the plugin itself but when you need to customize the templates for > the signin action then you'll need to create a module in your app > (frontend), create a template

Re: [symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread Daniel Lohse
It's in the plugin itself but when you need to customize the templates for the signin action then you'll need to create a module in your app (frontend), create a templates directory inside it and copy over the signinSuccess.php from the plugin. At this point you can customize it and symfony know

[symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread SatBoy78
I've seen apache log, and I've seen that all works well... I've a question about sfGuardAuth module: symfony doesn't generate it when I install the plugin? -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this message bec

Re: [symfony-users] [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread Eno
On Tue, 4 May 2010, SatBoy78 wrote: > I've got a strange problem with symfony: I've installed > sfDoctrineGuardPlugin and after this I can't access to my backend, I > can only see a blank page Look at your web server error logs for the error. -- -- If you want to report a vulnerability issu

Re: [symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread mehdi hadef
Ok. Maybe you should customize the sfGuardAuth module. See the step corresponding at http://www.symfony-project.org/plugins/sfDoctrineGuardPlugin, section begin by "Customize sfGuardAuth module templates." It could solve you problem. In my case I customized it and it works fine. 2010/5/4 SatBoy78

[symfony-users] relation betwwen a sfGuardUser and an other object in schema.yml

2010-05-04 Thread trankh
Every symfony developper has encountered this implemantation. How to define a relation between a sfGuardUser and an other object? I need a schema.yml example. Imagine an object EventMember which defines a relation between anobjet Event and an object sfGuardUser (which is a member in the applica

[symfony-users] sfForm button widgets?

2010-05-04 Thread Земсков Юрий
Hi, need to make SForm (symfony 1.4) Male Female Any ideas (except using radios with one submit button) how to achieve that? Plugins maybe? Thanks in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You received this mes

[symfony-users] Re: Adding custom :sf_format - incorrect headers sent

2010-05-04 Thread DEE
Hi Tom- Thanks for the reply. No I did not test in production yet, but will as soon as possible. However, the debug toolbar is supposed to only appear for :sf_format == 'html'; the default. For any other :sf_format supported by symfony's core factories.yml (ie. txt, css, atom, etc...) the debug t

[symfony-users] How to embed forms with 2 relations (embedRelation)

2010-05-04 Thread saki
Hi! Please to help me to solve this... There are partners (firms). Partners have services. Services have notes. Partners - Services using M-M relation, it works fine! I added embed forms to the service page to include the note forms. Still works fine. I added a service and partner field to the not

Re: [symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Sela Yair
I think I found slick solution, would like to get some feedback if that's the ideal solution. in action.class.php i modified the $form->bind *protected function processForm(sfWebRequest $request, sfForm $form)* * {* *$formData = $request->getParameter($form->getName());* *$formData['us

[symfony-users] [RFC] sfUnifiedGuard for Symfony 2

2010-05-04 Thread Michał Piotrowski
Hi, Plugins for Symfony 2 will need a major rewrite, so it's an occasion to change a few things. Basic concept: - merge sfGuardPlugin and sfDoctrineGuardPlugin into one plugin - share the same schema - actually both plugins uses different schema - might be a problem if someone want to switch ORM

[symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread SatBoy78
no, I don't have a sfGuardAuth module... -- 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-use

[symfony-users] Re: Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
And of course, change your "security" line in filters.yml to : security: class: MyBasicSecurityFilter On May 4, 12:41 pm, theredled wrote: > Found a solution : > > - make a MyBasicSecurityFilter that overrides sfBasicSecurityFilter > - override each forwardTo***Action() and add sfConfig::set('

[symfony-users] Re: Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
Found a solution : - make a MyBasicSecurityFilter that overrides sfBasicSecurityFilter - override each forwardTo***Action() and add sfConfig::set('sf_cache', false); at first lines. I dont know if it is really clean Made a ticket http://trac.symfony-project.org/ticket/8608 On May 4, 11:51 am, t

[symfony-users] Re: Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
Found a solution : - make a MyBasicSecurityFilter that overrides sfBasicSecurityFilter - override each forwardTo***Action() and add sfConfig::set('sf_cache', false); at first lines. I dont know if it is really clean Made a ticket http://trac.symfony-project.org/ticket/8608 On May 4, 11:51 am, t

Re: [symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread mehdi hadef
Ok I see nothing strange in your settings.yml. Have you a directory sfGuardAuth in apps/yourBackOffice/modules ? If yes, what do you have in your templates/signinSuccess.php and in the action that correspond ? 2010/5/4 SatBoy78 > this is my settings.yml > > prod: > .settings: >no_script_n

[symfony-users] How to show the validation errors inside the modal box?

2010-05-04 Thread Javier Garcia
Hi, i have a form inside a modal box. If i have some validation error, the form is not showed again inside the the modal box, but in the content area of the browser. Any way to show the form and its validation errors inside the modal box? Here you have my codes:

[symfony-users] Re: Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
Too Bad... Thanks. I'll look for a solution. On May 4, 11:16 am, Michał Piotrowski wrote: > Hi, > > 2010/5/4 theredled : > > > Hi, > > > I have an URI "foo/bar?baz=1" that requires authentication, AND which > > result must be cached. > > > The result is : the cached result is the authentication

[symfony-users] Re: [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread SatBoy78
this is my settings.yml prod: .settings: no_script_name: false logging_enabled:false dev: .settings: error_reporting: web_debug: true cache: false no_script_name: false etag: false tes

Re: [symfony-users] Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread Michał Piotrowski
Hi, 2010/5/4 theredled : > Hi, > > I have an URI "foo/bar?baz=1" that requires authentication, AND which > result must be cached. > > The result is : the cached result is the authentication page. How > ironic... > > Do you know what can be the origin of this problem ? AFAIK there is no way to pro

Re: [symfony-users] [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread mehdi hadef
Hi SatBoy, can you show us the seetings.yml file of your back end application. (apps/yourBackOffice/config/settings.yml 2010/5/4 SatBoy78 > hi all, > I've got a strange problem with symfony: I've installed > sfDoctrineGuardPlugin and after this I can't access to my backend, I > can only see a b

[symfony-users] Re: Symfony 2 Documentation or Tutorials

2010-05-04 Thread James Cauwelier
lol... Anyway, the reasoning of the poster is not hard to understand. Learning a new framework takes time and effort and you don 't want to study information that will be old in just a few months. Well, you 'll have to start with sf1.4 and see how it goes. sf1.4 will stick around for some time s

[symfony-users] Symfony's cache caches my sfDoctrineGuard auth pages... WTF.

2010-05-04 Thread theredled
Hi, I have an URI "foo/bar?baz=1" that requires authentication, AND which result must be cached. The result is : the cached result is the authentication page. How ironic... Do you know what can be the origin of this problem ? Thanks all. -- If you want to report a vulnerability issue on symfo

[symfony-users] Re: How overwrite addFiltersCriteria in symfony 1.4?

2010-05-04 Thread fRAnKEnSTEin
Hi, As i see..i think i can not add few addXXXColumnQuery methods and create a query in parts. I tell you why. I have 2 "custom inputs", so if i create 2 addXXXColumnQuery methods, ill end with something like this: public function addMyCustomInput1ColumnQuery($query, $field, $value) { } public f

[symfony-users] [backend] blank page after I've installed sfDoctrineGuardPlugin

2010-05-04 Thread SatBoy78
hi all, I've got a strange problem with symfony: I've installed sfDoctrineGuardPlugin and after this I can't access to my backend, I can only see a blank page I've followed all the steps shown in the joobet tutorial, I've cleaned the cache, but I can't see the login page... do you know why I've go

Re: [symfony-users] send_msg

2010-05-04 Thread Sela Yair
you need to have SMTP server to connect to. Most ISP blocks to disable spamming so it would be impossible then to have one on your local computer. In the docs of symfony there's instructions how to configure gmail server. On 4 May 2010 00:57, safa boubekri wrote: > > how can specify details >

Re: [symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Sela Yair
Thanks. Yes that's what I'm after. the following is the table in schema.yml Member: actAs: Timestampable: ~ columns: date_birth: type: date notnull: true logo: type: string(255) is_public: type: boolean notnull: true default: 1 is_activ

[symfony-users] Re: foreign key and sfDoctrineGuardPlugin

2010-05-04 Thread Tom Ptacnik
Yes you can do a relation between a user and another table object. Is that what you want? Please describe you question again.. On 3 kvě, 14:37, Sela wrote: > I want to associate a table with the user ID generated from > sfDoctrineGuardPlugin when the user is logged in. I thought to do it > in sa