[symfony-users] Re: sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-26 Thread FlyLM [ML]
2009/5/25 Campezzi campe...@gmail.com: Hi Fabien, Thanks for the answer. Since the group was supposed to be added automatically, I had the groups_list widget unset in my form. The function you pointed me to seems to take what was stored in that variable and link the values to the user

[symfony-users] Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread halla
Hi everybody, I'm using different routes for my application, which also determine the response format (xml or json for an REST-based web service). This is an example rule in routing.yml: user_me: url: /user/me.:sf_format params: { module: user, action:

[symfony-users] Re: Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread Gábor Fási
This is how it's done in jobeet, day 15: // apps/frontend/config/routing.yml category: url: /category/:slug.:sf_format class: sfPropelRoute param: { module: category, action: show, sf_format: html } options: { model: JobeetCategory, type: object } requirements: sf_format:

[symfony-users] Re: Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread halla
Yes, thats exactly the same way like I do it also :-) Except the sfPropelRoute. But, like I wrote: This raises a 404 if the URL is called without suffix :-(( On 26 Mai, 12:19, Gábor Fási maerl...@gmail.com wrote: This is how it's done in jobeet, day 15: // apps/frontend/config/routing.yml

[symfony-users] Re: Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread Gábor Fási
No you don't, here's the difference :) Yours: params: { module: user, action: getUserMe } Jobeet: param: { module: category, action: show, sf_format: html } On Tue, May 26, 2009 at 12:32, halla dha.maili...@googlemail.com wrote: Yes, thats exactly the same way like I do it

[symfony-users] Re: Routing-Rules: use sf_format only as an optional value

2009-05-26 Thread halla
No you don't, here's the difference :) Yours: params:               { module: user, action: getUserMe } Jobeet: param:   { module: category, action: show, sf_format: html } Sometimes small things can make a big difference :-) You're right - now it works great...!! Thank you very much, Gábor

[symfony-users] Task generate-admin is not defined.

2009-05-26 Thread Vikaash
hai I m trying to run this command php symfony propel:generate-admin backend RoomBooking -- module=home for my backend application for admin generator where RoomBooking is my propel object. when i run this command i get the Error Task generate-admin is not defined. i dont know whats the

[symfony-users] Re: The route x does not exist

2009-05-26 Thread Giselle Cantador
Humm... I got it... I'm using synfony 1.0 :-( But I'll verify my links, thanks a lot! Giselle On Mon, May 25, 2009 at 6:17 PM, Frank Stelzer d...@bleedingmoon.de wrote: This happens after the latest routing changes, i think. I still have to fight against those changes for myself, too :P

[symfony-users] Re: Task generate-admin is not defined.

2009-05-26 Thread DEEPAK BHATIA
Hi, Symfony 1.1 has the following Initiating an Administration Module With symfony, you build an administration on a per-module basis. A module is generated based on a Propel object using the propel:init-admin task: php symfony propel:init-admin backend article Article Thanks Deepak On

[symfony-users] Re: ExtJs JSON response

2009-05-26 Thread Tonio
Hi, There are pretty useful ff extension to view JSON response: https://addons.mozilla.org/en-US/firefox/addon/10869 Tonio https://addons.mozilla.org/en-US/firefox/addon/10869 On May 25, 3:20 pm, Lee Bolding l...@leesbian.net wrote: This is the correct solution. Your browser attempts to

[symfony-users] sfDoctrineGuard: Problem with an Equal Nest Relation in the Admin-Backend

2009-05-26 Thread halla
Hi everybody, I'm using the sfDoctrineGuardPlugin, for which I added an Equal Nest Relation [1] in the sfGuardUser-Table Definition: # this is added to the sfGuardUser-Table Definition relations: Relationships: class: sfGuardUser local: user1 foreign: user2

[symfony-users] Re: sfDoctrineGuardPlugin: automatically add new user to a group

2009-05-26 Thread Campezzi
Thanks Fabien, that's exactly what I wanted! I just didn't know exactly which method to override. I'm still finding my way around symfony ;) Cheers! Best Regards, Campezzi On May 26, 6:09 am, FlyLM [ML] flylm...@gmail.com wrote: 2009/5/25 Campezzi campe...@gmail.com: Hi Fabien,

[symfony-users] Re: Many sites using the same application

2009-05-26 Thread Guilherme Veras
I casually create centralized applications. Put in the folder WEB systems available thus gain a high rate of reuse of classes and specific functions. In addition, clear framework to keep my updated. But the architecture of symfony is perfect and allows you to make extensions or even mix the two

[symfony-users] Forms and post validators

2009-05-26 Thread Salim
Hi everybody I'd like to know if it's possible to determine if a form has errors when processing post validation. The purpose is to have a conditional postValidator, which is launched only if the classical validations passed. Here is a small sample of what i'd like to have (http://pastie.org/

[symfony-users] Re: How to access the object of an embedded form

2009-05-26 Thread Tom Haskins-Vaughan
Perfect! Works like a charm. Looking forward to sf1.3 to get rid of the need for the work-around. Tom Haskins-Vaughan wrote: Thanks, esion. I'll give it a go and let you know how I get on. esion wrote: Hi, First, I'm not sure that works : ?php foreach($form as $cartItemForm): ?

[symfony-users] Re: Database already exists and is populated

2009-05-26 Thread Atznt
Yes, All of you are truly right!!... Thank you! --~--~-~--~~~---~--~~ 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.com To unsubscribe from this group,

[symfony-users] functional tests for security

2009-05-26 Thread nick
How do I build a functional test that checks to see that I'm locked out of a secure page? --~--~-~--~~~---~--~~ 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] Re: Detecting required fields

2009-05-26 Thread Steve the Canuck
Thanks! On May 21, 1:04 pm, gimler gordon.fra...@web.de wrote: http://blog.nevalon.de/en/wie-kann-ich-alle-formular-pflichtfelder-mi... greetings Gimler On May 21, 6:17 pm, Steve the Canuck steve.san...@gmail.com wrote: Hi, Is there an easy way to determine if a field isrequiredprior