[symfony-users] sfForm sfFormField without foreach

2010-01-27 Thread DoRiaN
Hello (i'm french excuse me for my english) How to get sfFormField in sfForm withtout foreach ? When I use sfForm, I can get all my widget like that foreach ($this as $oWidget) { $oWidget-render()... } But i can't to do [B][I]each[/I][/B] or [B][I]while (list(, $oWidget) =

[symfony-users] XSS escaping_strategy escaping_method not work

2010-01-27 Thread smellycat37
hello, I use symfony 1.2.9 with doctrine... I would like to escape all the special html character that user can put in form html... So I add in the section .all .settings of my settings.yml file the followings lines: escaping_strategy: both escaping_method: ESC_ENTITIES With a form, I

[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread Pax95
Symfony is a very cool alternative if you want to start coding fast, not caring about base (if you know what i mean). -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To

[symfony-users] Doctrine inheritance and i18n forms

2010-01-27 Thread Thibault Jouannic
Hello symfony users, I think I might have found a bug in Symfony, and I require your point of view before a submit a bug entry. The problem is about i18n forms in inherited doctrine models. Let's pretend I've got this schema.yml : blockquote Article: actAs: Timestampable: ~ I18n:

Re: [symfony-users] sfForm sfFormField without foreach

2010-01-27 Thread Gábor Fási
You can access a field directly via `$form[fieldname]`, if that's what you're asking. On Wed, Jan 27, 2010 at 10:19, DoRiaN doria...@gmail.com wrote: Hello (i'm french excuse me for my english) How to get sfFormField in sfForm withtout foreach ? When I use sfForm, I can get all my widget

[symfony-users] Re: sfForm sfFormField without foreach

2010-01-27 Thread DoRiaN
No, i want loop. Always I need to break my foreach to start a new input template and loop on last inputs without name or index. foreach (...) ... break; Then I want loop again without foreach (because reset). each() or while (list(, $oWidget) = each($this)) don't work On 27 jan, 12:13,

[symfony-users] Re: Subdomain dynamicly

2010-01-27 Thread Tom Ptacnik
So, if you change content of index.php in your web project directory to something like ?php echo hello; ? (included my previous recomendation) and nothing is showed. Problem is in the virtualhost settings (apache... php...) If you see hello text. Problem should be in your symfony application.

[symfony-users] Re: Sandbox

2010-01-27 Thread Tom Ptacnik
The sandbox is a pre-packaged symfony project. With classic Symfony instalation you have to do some more configuration. On 26 led, 18:41, Pax95 piotre...@gmail.com wrote: What are the differences between Sandbox than original Symfony package? -- You received this message because you are

[symfony-users] Re: method_for_query semantics

2010-01-27 Thread Tom Ptacnik
Because you can create a query/redirect by passing an object e.g. $this-redirect(array('sf_route' = 'jobeet_edit', 'sf_subject' = $job)); and the url will be created automaticaly - he knows the slug, the company_slug etc. - you haven't to create URL by hand, only specify the route name and the

[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread Davide Borsatto
By the way, it's Symfony, not Symphony. On Jan 27, 1:37 am, raviu ravi.undupit...@gmail.com wrote: Hello, Could you tell us what you use symphony for, and how it has helped. Just a summary of one or two lines. I'm making up a report and would like some output from the symphony community.

[symfony-users] Re: sfEasyGMapPlugin only one info window displayed for markers

2010-01-27 Thread robdex
Hello. You have to insert the fourth parameter of GMapMarker object constructor: the marker javascript name: $marker = new GMapMarker($object-getLatitude(), $object-getLongitude (), array(), 'marker_'.$object-getId()); otherwise the listener call always the same marker object (the last one).

Re: [symfony-users] problem d'installation ( creation de la structure FRONTEND)

2010-01-27 Thread nassim fouchal
ou es ce que je peut trouver la directive de configuration ServerName pour lui ajouter les parametre du serveur virtuels . et avant j'ai ouvert le fichier HTTP.CONF et y avai ça # # MySQL server administration. # Alias /phpMyAdmin /var/www/myadmin Directory /var/www/myadmin DirectoryIndex

Re: [symfony-users] Re: sfForm sfFormField without foreach

2010-01-27 Thread Bernhard Schussek
That's no problem the form framework can solve for you, it's a programmatic problem. You can either: 1. Output the fields manually echo $form['field'] 2. Add conditionals in the loop foreach ($form as $name = $field) { if (in_array($name, array('name', 'address'))) { ... } else if

Re: [symfony-users] problem d'installation ( creation de la structure FRONTEND)

2010-01-27 Thread Stéphane
Il faut que tu places ce que tu as ajouté dans un fichier vhosts.conf par exemple, ensuite dans le httpd.conf tu devra rajouter une ligne du genre Include conf/extra/httpd-vhosts.conf Tu peux me faire ceci : créer un répertoire ou tu pourras mettre tous tes vhosts (un vhost par fichier), puis

[symfony-users] Multiple content div loading with ajax/json

2010-01-27 Thread thrtst
Hi, I was wondering if could get help with the following, I have implemented external content loading using Ajax (see javascript code below). And now I would like to add multiple container loading functionality using a Json object code I have (see json object code below). Could you please help

[symfony-users] Re: Doctrine inheritance and i18n forms

2010-01-27 Thread Thibault Jouannic
So, an idea anyone ? -- You received this message because you are subscribed to the Google Groups symfony users group. To post to this group, send email to symfony-us...@googlegroups.com. To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com. For more

[symfony-users] Re: sfForm sfFormField without foreach

2010-01-27 Thread DoRiaN
Thanks, i thought to do that but why there is not solution ? On 27 jan, 15:40, Bernhard Schussek bschus...@gmail.com wrote: That's no problem the form framework can solve for you, it's a programmatic problem. You can either: 1. Output the fields manually echo $form['field'] 2. Add

[symfony-users] How to properly migrate doctrine schema?

2010-01-27 Thread Darren884
Hello all, hope everyone is having a good day. I need to learn the proper command to migrate my doctrine schema properly, or my classes along with my schema in a whole. I have tried symfony doctrine:migrate symfony doctrine:generate-migrations-db However it does not work. This is if I change

[symfony-users] How to render embedded forms properly ?

2010-01-27 Thread Romain Pouclet
Hi all, I'm working on a quiz module in my Symfony application, so I have a NoeQuizParticipationForm which is supposed to include all my questions subforms. Thus, I have a NoeQuizParticipationAnswerForm class which handles the user's answer to each question, in this class I only have one

[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread Darren884
We use it for eCommerce management and I personally use it for my projects as well. When you have common sense and logic packed into a package its a versatile tool. On Jan 27, 5:38 am, Davide Borsatto lloy...@gmail.com wrote: By the way, it's Symfony, not Symphony. On Jan 27, 1:37 am, raviu

Re: [symfony-users] What do you use symphony for?

2010-01-27 Thread Diego Bello
On Tue, Jan 26, 2010 at 9:37 PM, raviu ravi.undupit...@gmail.com wrote: Hello, Could you tell us what you use symphony for, and how it has helped. Just a summary of one or two lines. I'm making up a report and would like some output from the symphony community. Thanks for any help.

[symfony-users] I have internationalization in frontend but I don't want that in backend !!

2010-01-27 Thread dziobacz
I have international frontend application and normal backend. I have model Firm with column: id and model FirmTranslation with column: offer. In frontend everything is ok but in backend when I use for example query: Doctrine_Query::create()-from('Firm')-execute(); I can show all data from model

[symfony-users] Re: Testing emails in development environment?

2010-01-27 Thread Alter Ego
I was just working on this today. All of this assumes you are using SwiftMailer. I am using this on symfony 1.4 In my factories.yml (apps/app_name/config/factories.yml) I have: dev: mailer: param: delivery_strategy: single_address delivery_address: my_em...@my_domain.com On

[symfony-users] Re: Slow template rendering

2010-01-27 Thread axel at
I just wrote the same code with standard php - direct database access, the request took 0,7 seconds! (same system as used above, intel cor...@3ghz with 8 gigs ram) On 27 Jan., 19:58, axel at axel.zu...@gmail.com wrote: hello list, symfony seems to be extrem slow - compared to native php a

[symfony-users] Issues with an IIS server and symfony 1.0.

2010-01-27 Thread Sid Ferreira
Im having issues with an IIS server and symfony 1.0. I know symfony 1.0 isn't supported anymore, but it wasn't up to me this decision. I hope someone have experience about this to share, IF I can't change the host. http://www.artenossa.net/index.php/moveis The specified CGI application

Re: [symfony-users] Issues with an IIS server and symfony 1.0.

2010-01-27 Thread Eno
On Wed, 27 Jan 2010, Sid Ferreira wrote: Im having issues with an IIS server and symfony 1.0. I know symfony 1.0 isn't supported anymore, but it wasn't up to me this decision. I hope someone have experience about this to share, IF I can't change the host.

Re: [symfony-users] Re: Slow template rendering

2010-01-27 Thread Eno
On Wed, 27 Jan 2010, axel at wrote: I just wrote the same code with standard php - direct database access, the request took 0,7 seconds! (same system as used above, intel cor...@3ghz with 8 gigs ram) Err, did really you expect a framework to be faster than straight PHP? -- -- You

[symfony-users] Include css and js without layout

2010-01-27 Thread Vincent UNG
Hi !! In my project, I have many _from that I have to view withou layout (I already set the $this-setLayout method at false), and I woul like to include a specific CSS and a specific JS file. I tried use_javascript('form') and use_stylesheet('form'), maybe I passed the wrong parameter... How can

[symfony-users] Re: What do you use symphony for?

2010-01-27 Thread rekarnar
Hi Ravi, We use Symfony for everything from our simple Blog sites to Gallery and Portfolio's. Aswell as the occasional E-Com and other misc web apps. It has helped by enabling us to build and deploy all the above quickly and efficiency with the use of the awesome toolset the Symfony Framework

Re: [symfony-users] Use Transaction call directly or use other method like Postsave()

2010-01-27 Thread Dong YANG
Hi, Cool, thanks for your reply. I will try these methods later. Have a nice day. JoJo 2010/1/25 Земсков Юрий y...@zemskov.name See no difference. Maybe symfony tutorial is a bit outdated. Using pre- post- methods you can do the same stuff while writing less code. Just don't

Re: [symfony-users] Include css and js without layout

2010-01-27 Thread Gábor Fási
In such a case I'd go for manually creating the neccesary style or script tag in your _form template. A bit better version may be to call include_javascripts_for_form() and include_stylesheets_for_form(). On Wed, Jan 27, 2010 at 22:36, Vincent UNG ung.vinc...@gmail.com wrote: Hi !! In my

[symfony-users] Symfony NYC user group

2010-01-27 Thread Jesse
I did a bit of searching and could not for the life of me find a Symfony user group in the new york metro area. So I started one. How many users on this list are interested in meeting every once in a while to discuss Symfony and related topics? http://www.meetup.com/symfony-nyc

Re: [symfony-users] Symfony NYC user group

2010-01-27 Thread Eno
On Wed, 27 Jan 2010, Jesse wrote: I did a bit of searching and could not for the life of me find a Symfony user group in the new york metro area. There is. Its part of NYPHP: http://lists.nyphp.org/mailman/listinfo/symfony I started that group but there's very little traffic so far. --

[symfony-users] Re: Issues with an IIS server and symfony 1.0.

2010-01-27 Thread Darren884
Why not upgrade? On Jan 27, 12:58 pm, Eno symb...@gmail.com wrote: On Wed, 27 Jan 2010, Sid Ferreira wrote: Im having issues with an IIS server and symfony 1.0. I know symfony 1.0 isn't supported anymore, but it wasn't up to me this decision. I hope someone have experience about this to

[symfony-users] Re: sfForm sfFormField without foreach

2010-01-27 Thread ken
If you mean like dividing your form into different fieldsets/groups then what you can to is add like a public property in the form organizing the fields. someForm extends sfForm { public $fieldsets = array( 'Profile' = array( 'field_a' ) ) } ?php foreach($fieldsets['Profile']

[symfony-users] External user authentication with sfDoctrineGuardPlugin

2010-01-27 Thread ashton
I have my external authentication working, but the problem that I am running into is that there needs to be a user in the sfGuardUser table that matches the username submit in the login form, otherwise the login fails. So when I currently add 'return true;' to the top of the external auth

[symfony-users] Re: Slow template rendering

2010-01-27 Thread axel at
I didn't expect it to be faster than straight PHP, but it's about 35 times slower!!! do you have any constructive ideas for performance tuning? On 27 Jan., 21:59, Eno symb...@gmail.com wrote: On Wed, 27 Jan 2010, axel at wrote: I just wrote the same code with standard php - direct database

[symfony-users] Making sure a login id only has one session at any moment

2010-01-27 Thread yth
Dear all, When a user logins, the controller calls the following function in the myUser.class. The problem is, if he doesn't logout but then logins in another computer/browser, the old session does not get killed. I tried to use setAuthenticated(false) on users who have already authenticated,

Re: [symfony-users] Re: Slow template rendering

2010-01-27 Thread Eno
On Wed, 27 Jan 2010, axel at wrote: I didn't expect it to be faster than straight PHP, but it's about 35 times slower!!! do you have any constructive ideas for performance tuning? People always make such a simplistic comparisons. There's lots you can do, like optimize queries, use fumctional

[symfony-users] Re: I have internationalization in frontend but I don't want that in backend !!

2010-01-27 Thread dziobacz
I think this is a bug: http://trac.symfony-project.org/ticket/8194#preview On 27 Sty, 19:23, dziobacz aaabbbcccda...@gmail.com wrote: I have international frontend application and normal backend. I have model Firm with column: id and model FirmTranslation with column: offer. In frontend