[symfony-users] Testing tasks

2010-03-04 Thread Tarjei Huse
Hi, I might have missed something, but does symfony have a way to write tests for tasks? I got a task I would like to have test coverage for and the best way seems to be do some kind of functional testing on it. Kind regards, Tarjei -- Regards / Med vennlig hilsen Tarjei Huse Mobil: 920 63

Re: [symfony-users] Testing tasks

2010-03-04 Thread Alexandru-Emil Lupu
HI! Well is a Unit after all. Alecs On Thu, Mar 4, 2010 at 10:07 AM, Tarjei Huse tar...@scanmine.com wrote: Hi, I might have missed something, but does symfony have a way to write tests for tasks? I got a task I would like to have test coverage for and the best way seems to be do some

[symfony-users] sfDoctrineGuardPlugin - error in handling own generator.yml for sfGuardUser

2010-03-04 Thread Tom Ptacnik
Hi, I have problem with customizing the generator of the sfGuardUser. I want to remove the permissions_list from the filter form. I've copied the generator.yml file from the plugin folder to my apps/ backend/modules/sfGuardUser/config/generator.yml If I siply remove the permissions_list from

[symfony-users] Re: sfDoctrineGuardPlugin - error in handling own generator.yml for sfGuardUser

2010-03-04 Thread Tom Ptacnik
I found a solution, not nice, but it's simple and it works for me filter: display: [username, is_active, is_active, is_active] It somehow overwrites the array of the original generator.yml, and the is_active is showed only once. On 4 bře, 09:52, Tom Ptacnik to...@tomor.cz wrote: Hi,

Re: [symfony-users] Re: sfDoctrineGuardPlugin - error in handling own generator.yml for sfGuardUser

2010-03-04 Thread Daniel Lohse
There is another way. It's one that does not involve these hacky things. Simply copy the sfGuardUserGeneratorConfiguration.class.php to your apps/backend/modules/sfGuardUser/lib/ folder and add the following code: public function getFilterDisplay() { $display = parent::getFilterDisplay();

[symfony-users] Re: filter causes CSRF attack

2010-03-04 Thread mbernasocchi
sorry to bothe abain, but the pastebin expired... now it's all here: http://pastebin.com/quQfBXTy and here: ?php /* *filters.yml rendering: ~ remember_me: class: sfGuardRememberMeFilter clear_owner: class: ownerFilter security: ~ # insert your own filters here cache: ~ execution:

[symfony-users] Re: Integration with third party script

2010-03-04 Thread halfer
Note: x-posted to the forum here: http://forum.symfony-project.org/index.php/m/94760/ -- 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

Re: [symfony-users] Validations

2010-03-04 Thread Gareth McCumskey
Forms framework was introduced in symfony 1.1 and the older forms helpers and validators were deprecated in 1.2 I believe. You can set the sfCompat10 plugin to be used for 1.1 and things should still work but really is better to migrate over to the forms framework. We are currently reworking our

[symfony-users] Re: sfJqueryReloaded Plugin in Symfony 1.4

2010-03-04 Thread ScherlOMatic
Hello! Thanks for your reply, but none of your solutions worked for me. By the way the sfLoader is deprecated and was removed since symfony version 1.4. I found the sfContext::getInstance()-getConfiguration()- loadHelpers() method which works perfectly. Two questions remaing: 1) How does it

[symfony-users] symfony and doctrine migrations - who to believe?

2010-03-04 Thread godbout
Hi guys. I want to use the symfony tasks for the doctrine migration but I can't find any consistent piece of information. I read this: - http://www.doctrine-project.org/documentation/manual/1_2/en/migrations and this: -

[symfony-users] Propel double join

2010-03-04 Thread HAUSa
In Propel I have a double JOIN: the Zipcode table is joined in a query on the User table. Now I have two functions which both join the Zipcode table: * addSortCriteria() * addFilterCriteria() When a user sorts on a record from the Zipcode table (addSortCriteria), the Zipcode table is joined, as

[symfony-users] Diferents DB users for diferents applications

2010-03-04 Thread Germana Oliveira
Hi!! I want to know if i can have a different users in my data base depending the application the user access.. i meant, i have a 'public' app and 'intranet' app, so if a user access the app i want he connect with a specific user of the data base so i can define restrictions. How can i do that

[symfony-users] Re: Symfony frontend sort by th

2010-03-04 Thread ziclo
Does anyone has a tutorial about that ? The backend is usefull but a good tutorial would be appreciate in order to be able to do that kind of common functionnalities. Tnak you On 18 fév, 11:16, ziclo lauren...@gmail.com wrote: Hello, That what i'm going to do. Thank you On 18 fév, 09:12,

[symfony-users] Many to many doctrine in forms / embeded forms.

2010-03-04 Thread Samuel Morhaim
I am having some issues finding a good example on how to display the many to many fields in a form, actually on an embeded form. Can somebody point me in the right direction? Thank you. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com

[symfony-users] Valid path to a directory containing Doctrine models

2010-03-04 Thread Bill P.
Hello, I am trying to setup a new project using NetBeans and this tutorial: http://wiki.netbeans.org/NB68symfony It is using propel, but I am setup with Doctrine. Everything seems to be setup correctly, but when I am trying to insert-sql, I get this error; You must pass a valid path to a

[symfony-users] Adding a validator to a Doctrine Form

2010-03-04 Thread HiDDeN
I defined validators to my Doctrine model, so it generated automatic validators (such as maxlength, required, etc). Now I would like to add a validator directly in my form, but without losing the ones defined by Doctrine, is this possible? How could I achieve it? Thanks! -- If you want to

[symfony-users] getForm() in a regular module?

2010-03-04 Thread Darren884
Hi guys, I have used generate:module to generate a CRUD module, however it does not have getForm() in it like my admin generated section. How would I accomodate this? I am getting my form like: $this-form = new CustomerForm($customer); But how can I do it like I am in my other by calling

Re: [symfony-users] Adding a validator to a Doctrine Form

2010-03-04 Thread Gábor Fási
$this-validatorSchema['email'] = new sfValidatorAnd(array( $this-validatorSchema['email'], new sfValidatorEmail(), )); On Thu, Mar 4, 2010 at 17:56, HiDDeN davidmoralesmoj...@gmail.com wrote: I defined validators to my Doctrine model, so it generated automatic validators (such as

[symfony-users] Re: getForm() in a regular module?

2010-03-04 Thread Darren884
I just generated an admin to use. On Mar 4, 9:06 am, Darren884 darren...@gmail.com wrote: Hi guys, I have used generate:module to generate a CRUD module, however it does not have getForm() in it like my admin generated section. How would I accomodate this? I am getting my form like:

[symfony-users] Having horrible time with forms.

2010-03-04 Thread Darren884
Heres the deal, I created an admin generated form in my backend, and I am able to edit my customers easily. However when I try to make a form on the main site for them to update their date I simply cannot do it. The form system makes it so when I try to use the previous form class its impossible

Re: [symfony-users] How does form widgets take default into account?

2010-03-04 Thread Susan Ditmore
Hey Aadaam, I tried doing this: $this-setDefault('startdate', date('Y-m-d')); and it works for me. Can you try it and see? Thanks, Susan On Sun, Feb 28, 2010 at 7:16 PM, Aadaam aad...@gmail.com wrote: Hi all, I now this is a silly question, but I simply can't set a date widget to a

[symfony-users] symfony Forms in Action

2010-03-04 Thread danceric
Hi, I've seen a link to the 'symfony Forms in Action' in the symfony blog, I'm wondering why it's not linked on the 'Documentation' page, it's a helpful resource. http://www.symfony-project.org/forms/ -- If you want to report a vulnerability issue on symfony, please send it to security at

[symfony-users] How to create a child module with admin generator ?

2010-03-04 Thread Herzult
Hello, I am trying to create a kind of child module with admin generator. I wanted to know if you have solutions. Take for example the following model : Article: columns: title: { type: string(45) } headline: { type: string(500) } ArticlePage: columns: title: { type: string(45),

[symfony-users] Beginer

2010-03-04 Thread DEVNET
Merci de me guider par rapport à la documentation de base pour débuter dans symfony. -- 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

[symfony-users] Re: problems with embedRelation with a self related m:n

2010-03-04 Thread romain godefroy
hi, Have you tried to defined the relation with type: many I don't know if it could change anything for you but it should be test ? On 3 mar, 20:56, axel at axel.zu...@gmail.com wrote: I have a list of persons, and an m:n relation that relates one person with several other persons: Person:  

[symfony-users] Possible bug found in sfWidgetFormChoice

2010-03-04 Thread Meijuh
When I use: $this-widgetSchema[1] = new sfWidgetFormChoice(array('default' = 'b', 'choices' = array('a' = 'a', 'b' = 'b'))); The option with value b will not get the selected attribute. But when I use: $this-widgetSchema[(1).'foo'] = new sfWidgetFormChoice(array('default' = 'b', 'choices' =

[symfony-users] Re: Front controller too greedy?

2010-03-04 Thread ribeiro.pau...@googlemail.com
Hi Daniel, try using this .htaccess modified version. I've added two new rules. Options +FollowSymLinks +ExecCGI DirectoryIndex index.php IfModule mod_rewrite.c RewriteEngine On # uncomment the following line, if you are having trouble # getting no_script_name to work RewriteBase /

[symfony-users] Multiple Databases with the same Model

2010-03-04 Thread Rotlaus
For a new application we are looking for a php web framework that supports multiple databases with the same schema/model. Every customer of us will become his own webserver with his own database. On top of this we want to develop a central administration app that works on all customer databases,

[symfony-users] Deploy an application

2010-03-04 Thread maelo_fredas
Hello everyone: I'm developing an app with symfony-1.2.12, Doctrine and PostgreSQL. Deployed it according the steps defined in Jobeet. The files were successfully transferred after deploy task (done in the same pc), but some AJAX queries don't work in deployment. Checked with Firebug and the .js

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-04 Thread Susan Ditmore
If you just want to sort the results on the immediate page, you can use this with the jquery plugin: http://tablesorter.com/docs/ If you want to be able to sort across multiple pages, tell me what you're using for pagination and I can give you a few ideas (but it will be more difficult). On

[symfony-users] Test email sending in function test

2010-03-04 Thread Alexx
Hi, Sorry for my english. I try test email sending, but when I call action ($browser-post('/ genre/save')) it call in prod environment (in production environment mailer settings is incorrect), not in test. How can I change environment? My factories.yml: test: mailer: param:

[symfony-users] Route :slug value

2010-03-04 Thread feykintosh
Hi all, I'm having a problem with routing. route.yml settings: Send: url: /exp/send/:token param: { module: exp, action: Send } And my action.php file: public function executeSend(sfWebRequest $request){ var_dump($request-getParameter('token')); //don't work.

[symfony-users] Re: ideas for development architecture in symfony

2010-03-04 Thread Joshua
Thanks but Apostrophe still doesn't do it for me. I'm looking for specific code implementation suggestions from developers. On Mar 4, 1:50 am, Alexandru-Emil Lupu gang.al...@gmail.com wrote: Apostrophe is symfony based On Thu, Mar 4, 2010 at 7:11 AM, Joshua houseaddi...@gmail.com

[symfony-users] You must pass a valid path to a directory containing Doctrine models

2010-03-04 Thread Bill P.
(not sure if i posted this correctly last time) Hello, I am trying to setup a new project using NetBeans and this tutorial: http://wiki.netbeans.org/NB68symfony It is using propel, but I am setup with Doctrine. Everything seems to be setup correctly, but when I am trying to insert-sql, I

Re: [symfony-users] You must pass a valid path to a directory containing Doctrine models

2010-03-04 Thread Eno
On Thu, 4 Mar 2010, Bill P. wrote: I am trying to setup a new project using NetBeans and this tutorial: http://wiki.netbeans.org/NB68symfony It is using propel, but I am setup with Doctrine. Everything seems to be setup correctly, but when I am trying to insert-sql, I get this error;

[symfony-users] Re: getForm() in a regular module?

2010-03-04 Thread Richtermeister
Hey Darren, just look at what the getForm method is doing internally and mimic the behavior in your code. Daniel On Mar 4, 9:06 am, Darren884 darren...@gmail.com wrote: Hi guys, I have used generate:module to generate a CRUD module, however it does not have getForm() in it like my admin

[symfony-users] Re: Adding a validator to a Doctrine Form

2010-03-04 Thread HiDDeN
Thanks! On 4 mar, 18:22, Gábor Fási maerl...@gmail.com wrote:   $this-validatorSchema['email'] = new sfValidatorAnd(array(     $this-validatorSchema['email'],     new sfValidatorEmail(),   )); On Thu, Mar 4, 2010 at 17:56, HiDDeN davidmoralesmoj...@gmail.com wrote: I defined validators

[symfony-users] Re: symfony and doctrine migrations - who to believe?

2010-03-04 Thread Florian
hi, you surely wanted to say 'generate-migrations-diff' in your third try ? The doctrine:generate-migrations-diff task calculates the difference between your model classes and the yml schema. So when you want to modify your model, do this in *this exact order* : - make sure your model is up

[symfony-users] Re: sfJqueryReloaded Plugin in Symfony 1.4

2010-03-04 Thread Antoine S.
Hi, 1. By default only Partial and Cache Helpers are include You load what you need .. 2. It s not really about accessing helper from a form, but I think that the JQueryHelper is to generate html and js code. So anything about final rendering should be in your template, especially for

[symfony-users] Re: Having horrible time with forms.

2010-03-04 Thread Darren884
I am doing that and it is still giving me the error. On Mar 4, 12:00 pm, Richtermeister nex...@gmail.com wrote: Hey Darren, when you use a form to update a record, make sure you pass the record into the form at creation time, for example: $customer = CustomerPeer::retrieveByPk(123123);

[symfony-users] Re: Having horrible time with forms.

2010-03-04 Thread Darren884
These forms will simply not work. They keep resetting my record id to 0. On Mar 4, 2:38 pm, Darren884 darren...@gmail.com wrote: I am doing that and it is still giving me the error. On Mar 4, 12:00 pm, Richtermeister nex...@gmail.com wrote: Hey Darren, when you use a form to update a

[symfony-users] I18N for a Symfony plugin

2010-03-04 Thread Tom Boutell
I've been working on internationalization for apostrophePlugin. I've succeeded in adding __() calls as needed for a large portion of it, but it turns out that extracting all of the candidate strings for translation to a reasonable XLIFF file is not trivial. The extract:i18n task only looks at

Re: [symfony-users] Re: Having horrible time with forms.

2010-03-04 Thread Eno
On Thu, 4 Mar 2010, Darren884 wrote: These forms will simply not work. They keep resetting my record id to 0. It would help if you provided the source of the page when doing an update so we can see what the form looks like. Form go boom-boom is not an error message and without sufficient

Re: [symfony-users] getForm() in a regular module?

2010-03-04 Thread Eno
On Thu, 4 Mar 2010, Darren884 wrote: Hi guys, I have used generate:module to generate a CRUD module, however it does not have getForm() in it like my admin generated section. How would I accomodate this? I am getting my form like: $this-form = new CustomerForm($customer); Correct if you

[symfony-users] Facebook Connect added auth_token

2010-03-04 Thread Don_Busi
Hi everybody, I'm implementing a Facebook Connect application with Symfony and the sfFacebookConnectPlugin. For some strange reason for every page that uses the Facebook PHP- Client the page first get's delivered as requested and then it is redirected to the same url with

[symfony-users] Re: Having horrible time with forms.

2010-03-04 Thread Darren884
I apologize if I get frustrated guys, I have been extensively looking through them today and think I may have found the solution. On Mar 4, 3:17 pm, Eno symb...@gmail.com wrote: On Thu, 4 Mar 2010, Darren884 wrote: These forms will simply not work. They keep resetting my record id to 0. It

[symfony-users] Re: symfony and doctrine migrations - who to believe?

2010-03-04 Thread godbout
Hi Florian! Thx for the help. Yah, you're right, I meant 'generate-migrations-diff'. Was a bit tired from the day probably :-p Yah, also I got the flow. Actually I think I've found why it didn't work, there's an error in the yml file (found when I've tried to build the classes anyway). But it

Re: [symfony-users] Re: Symfony frontend sort by th

2010-03-04 Thread Gareth McCumskey
In your view in the header cell: th?php echo link_to(image_tag('sort_icon.png'),'module/action?sort=column_name') ? /th In your action: $this-data = TablePeer::getData($parameters, $request-getParameter('sort')); In your model for class TablePeer: public static function getData($parameters,

Re: [symfony-users] sfPhpunitPlugin - working on sf1.4.2

2010-03-04 Thread Frank Stelzer
Hi, You may have a look at sfPHPUnit2Plugin: http://www.symfony-project.org/plugins/sfPHPUnit2Plugin It's written for sf 1.4.X. Frank Am 20.02.2010 um 20:50 schrieb Stéphane: Hi list, Does someone use this plugin with symfony 1.4.2 ? Thanks, Salut, Est-ce que quelqu'un utilise ce

Re: [symfony-users] Testing tasks

2010-03-04 Thread Tarjei Huse
Hi, On 03/04/2010 09:16 AM, Alexandru-Emil Lupu wrote: HI! Well is a Unit after all. The reason I asked was because tasks like actions connect to a lot of different symfony services (templating , the dispatcher , the mailer etc). What I ended up doing was the following: ?php

[symfony-users] Re: problems with embedRelation with a self related m:n

2010-03-04 Thread Tom Ptacnik
Maybe it's only a typo here, but in relation definition in the Person table you have foreign: related and it should be foreign: relatedId Or maybe the problem is that if you have M:N relation, you have schema like this: Table1 ... relation: local: id1 foreign: id2 ... Table2 ...

Re: [symfony-users] Facebook Connect added auth_token

2010-03-04 Thread Frank Stelzer
Hi, I wrote a complete fb application and had a similar problem. The problem was that the fb requests lost the session in the sf app all the time. The fb requests do not support cookies and so the normal session storage does not work. In my case, I worked with a special session storage

[symfony-users] Re: How to customize the save process of many-to-many relation in symfony form framework?

2010-03-04 Thread Tom Ptacnik
I'm not good at doctrine at all, but I think that i you don't know how to write this in DQL (Doctrine Query Language) there is a way how to write pure SQL and execute it On 4 bře, 08:58, SymfonyNewbie shore.cl...@gmail.com wrote: You are right,I'm using doctrine. Looking for information how

[symfony-users] Re: sfDoctrineGuardPlugin - error in handling own generator.yml for sfGuardUser

2010-03-04 Thread Tom Ptacnik
I already have sfGuardUserGeneratorConfiguration.class.php in my application, so adding this function to it is exactly what i needed :-) I like this solution. Thank you very much. On 4 bře, 10:14, Daniel Lohse annismcken...@googlemail.com wrote: There is another way. It's one that does not

[symfony-users] Re: sfDoctrineGuardPlugin - error in handling own generator.yml for sfGuardUser

2010-03-04 Thread Tom Ptacnik
Oh, but this $display array looks like this: array(4) { [0]= string(8) username [1]= string(9) is_active [2]= string(11) groups_list [3]= string(16) permissions_list } so I have to unset permissions_list by unset($display[3]); Or better find the permissions_list value somehow and then unset